I saw a screencast where someone had gotten
git st
git ci
to work. When I do it I get an error asking me if I meant something else.
Being a git newb, I need to know what you have to do to get this done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
As others have said the appropriate way to add git aliases is in your global
.gitconfigfile either by editing~/.gitconfigor by using thegit config --global alias.<alias> <git-command>commandBelow is a copy of the alias section of my
~/.gitconfigfile:Also, if you’re using bash, I would recommend setting up bash completion by copying
git-completion.bashto your home directory and sourcing it from your~/.bashrc. (I believe I learned about this from the Pro Git online book.) On Mac OS X, I accomplished this with the following commands:Note: The bash completion will work not only for the standard git commands but also for your git aliases.
Finally, to really cut down on the keystrokes, I added the following to my
~/.bash_aliasesfile, which is sourced from~/.bashrc: