Git is automatically opening a Terminal window when I save commit messages on my Mac. This might normally be useful (e.g. if the commit was initiated from a Terminal window), but I use iTerm as my terminal emulator and as such this is just annoying. Is there anyway to configure Git to either use iTerm or otherwise stop doing this altogether?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
I wonder if you system is trying to open a terminal window so you can enter the commit message? If so, you can make your commits without an editor like this:
If you just type:
Then git opens an editor window so that you can provide the commit message. Hope this helps. |
|||
|
|
|
A-ha! So running
I had apparently set my editor (MacVim in this case) to automatically reopen my terminal window when I was done, long before I was using iTerm.app. Changing this to a simple
alleviated my problem. Thanks for your answers and for providing me with the spark I needed to solve the problem! |
|||
|
|
git config -l? – Wuffers Jul 2 '11 at 23:02env) so we can see what the editor-related variables are. Also, are you using some Git GUI interface, or the command line git? – Kevin Reid Jul 2 '11 at 23:40