Thursday, December 18, 2014

Git Tip of the Year: Aliases

If you want to use the "git st" instead of the "git status" then you've come to the right place.

If you want to use the "git co" instead of the "git checkout" then you've come to the right place.

If you want to use the "git ci" instead of the "git commit" then you've come to the right place.

Just run this commands:
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.ci commit
And you're done:
$ git ci --allow-empty -m "nice, we can commit with 'git ci' now"
Yay, we've just made a subversion out of git!

No comments:

Post a Comment