Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8878431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:42:35+00:00 2026-06-14T19:42:35+00:00

Does anybody know if there is a way to automatically commit a project (a

  • 0

Does anybody know if there is a way to automatically commit a project (a directory) just after a successful build from within an IDE? That is: something like a continous integration system, just lighter and better fit for a low-ceremony, “solo development” scenario.

I’m particularly interested in any solution that can work with IntelliJ IDEA (Community Edition) and GIT for Android projects (Java/Ant/Maven) but I’m also interested in other solutions (Eclipse, Netbeans, SVN, Hg, etc.). I’m also interested in a more general discussion on this topic (it is a good/bad idea, it can be done this way or this other, etc.).

I’m also open to code-based solutions (scripts, plug-ins, etc.). In particular, does anybody know if IntelliJ IDEA offers any “hook” for executing a script just before/after a menu command?

RATIONALE: I’m using IDEA to make a long series of small (but painful) experiments on an existing Android project and I would like to be able to go back step-by-step when needed using GIT (each step being represented by one of the previous successful builds). Call it “breadcrumbs programming” if you like.

Please note: I do know that this can be easily obtained with Ant/Maven/GIT/many-other-tools from the command line. I just want to see if it is possible to do it from within any of the IDEs I’m used to. And yes: I know I should commit often. I do it. I’m just tired to do it by hand.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:42:37+00:00Added an answer on June 14, 2026 at 7:42 pm

    OK, it looks like that this is not (yet) possible with IntelliJ IDEA, even if there is a very similar feature request sleeping since 2007: http://youtrack.jetbrains.com/issue/IDEABKL-5755 .

    As long as I can see, the only IDE that currently offers a hook for executing a pre/post-build script in its own GUI is Eclipse, thanks to its “Builders” dialog:

    Eclipse adding your own build command

    Both IDEA and NetBeans rely on Ant targets (only) for this kind of pre/post-build processing tasks. See: https://ant.apache.org/manual/Tasks/exec.html .

    Unfortunately, there is not yet a real integration between Ant and GIT (even if there are a few projects out there) so either you have to rely on a OS command (a process fork) or you can try to use JGit (http://eclipse.org/jgit/).

    Another possible solution would be to modify the existing IDE GIT plug-in and make it able to accept pre/post-commit tasks or scripts (Eclipse, NetBeans and IDEA use plug-ins to interact with GIT).

    Most likely, for the task at hand I will rely on my (old and tired) hands or on an Ant script.

    In any case, IMHO, the “right” way to perform this kind of automatic commit would be the following:

    1. Build the project (via Ant/Maven or via the IDE internal build system)
    2. Ask the user for a commit message (or generate a message based on date and time)
    3. Commit the source tree

    Of course, a failed build should abort the remaining operations.

    This would/should/ought NOT replace the normal, hand-performed, flow of commits. It should complement it, instead (maybe using a seperated GIT local repository or a separated branch).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody know if there is a way to display the text value of
Does anybody know if there is a way to get the sender's MAC address
Does anybody know if there is a way in Visual Studio 2010 to highlight
i'm sure there's a way to do this Does anybody know if there is
Does anybody know if there is a way to create an SQLite database based
Does anybody know if there is a way to make autocompletion work in MySQL
Does anybody know if there is a way using java to pass all the
Does anybody know if there is a way to understand what users are doing
Does anybody know if there is a way to increase the size of the
Does anybody know whether there's a way of finding out whether a particular file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.