Created
December 23, 2011 07:42
-
-
Save sapegin/1513506 to your computer and use it in GitHub Desktop.
Git Aliases 2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global alias.a add | |
git config --global alias.b branch | |
git config --global alias.c commit | |
git config --global alias.ca "commit -a" | |
git config --global alias.cam "commit -am" | |
git config --global alias.co checkout | |
git config --global alias.s "status -sb" | |
git config --global alias.glog "log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" |
Алиасы @holman, которые я взял за основу, тоже были для zsh. Но я пока не дорос :)
Ммм, ну в bash алиасы так же работает, если что.
Я знаю, но башем я недавно стал постоянно пользоваться под Виндою. Так что, вероятно, поменяю потом.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
А я для zsh алиасы прибил, покороче. Например
gita
—git add
,gitcim
—git commit -a
,gitcob
—git checkout -b
и т.д..