Last active
March 6, 2024 08:15
-
-
Save lvnam96/c3050960b4b199401cfff69790791c99 to your computer and use it in GitHub Desktop.
Aliasing Git commands
This file contains 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.st status | |
git config --global alias.br branch | |
git config --global alias.co checkout | |
git config --global alias.ls 'log --oneline --decorate' | |
git config --global alias.sts stash | |
git config --global alias.cm commit | |
git config --global alias.cma 'commit --amend' | |
git config --global alias.rs reset | |
git config --global alias.rb rebase | |
git config --global alias.rbi 'rebase -i' | |
git config --global alias.rbc 'rebase --continue' | |
git config --global log.follow true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
F* it, just use
zsh
& enablegit
plugin 🐧https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git#aliases