Skip to content

Instantly share code, notes, and snippets.

@sapegin
Created December 23, 2011 07:42
Show Gist options
  • Save sapegin/1513506 to your computer and use it in GitHub Desktop.
Save sapegin/1513506 to your computer and use it in GitHub Desktop.
Git Aliases 2.0
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"
@svetlyak40wt
Copy link

А я для zsh алиасы прибил, покороче. Например gitagit add, gitcimgit commit -a, gitcobgit checkout -b и т.д..

@sapegin
Copy link
Author

sapegin commented Dec 23, 2011

Алиасы @holman, которые я взял за основу, тоже были для zsh. Но я пока не дорос :)

@svetlyak40wt
Copy link

Ммм, ну в bash алиасы так же работает, если что.

@sapegin
Copy link
Author

sapegin commented Dec 23, 2011

Я знаю, но башем я недавно стал постоянно пользоваться под Виндою. Так что, вероятно, поменяю потом.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment