Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to change an alias that I created via

git config --global commit


git config --global commit -m

so that I don't have to type it out and to just give the commit a short message each time I do commit.

I just migrated from Windows to Mac, and this alias does work on Windows for me. I wonder if it will work on Mac (I assume), and if so: Where can I find the file where these configurations are stored to change them?

share|improve this question
up vote 2 down vote accepted

Have a look at the [alias]-section in your ~/.gitconfig-File.

You should find something like

    ci = commit

which you can change to

    ci = commit -m

When using git config to change aliases, make sure to put quotes round the command you want to alias if necessary:

git config --global "commit -m"
share|improve this answer
Thanks Jens!. That was easy – Nik So Nov 4 '11 at 1:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.