Skip to content

Instantly share code, notes, and snippets.

@lvnam96
Last active March 6, 2024 08:15
Show Gist options
  • Save lvnam96/c3050960b4b199401cfff69790791c99 to your computer and use it in GitHub Desktop.
Save lvnam96/c3050960b4b199401cfff69790791c99 to your computer and use it in GitHub Desktop.
Aliasing Git commands
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
@lvnam96
Copy link
Author

lvnam96 commented Mar 6, 2024

F* it, just use zsh & enable git plugin 🐧
https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git#aliases

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