Skip to content

Instantly share code, notes, and snippets.

@kkbruce
Created November 14, 2025 05:29
Show Gist options
  • Select an option

  • Save kkbruce/5000adebca3a70f400e783abf93cb9fe to your computer and use it in GitHub Desktop.

Select an option

Save kkbruce/5000adebca3a70f400e783abf93cb9fe to your computer and use it in GitHub Desktop.
git alias
git config --global alias.br branch
git config --global alias.co checkout
git config --global alias.cm commit
git config --global alias.ci commit
git config --global alias.df "diff"
git config --global alias.ft "fetch"
git config --global alias.l "log --oneline --graph"
git config --global alias.ls "log --graph --pretty=format:'%h <%an> %ar %s'"
git config --global alias.last 'log -1 HEAD'
git config --global alias.pl pull
git config --global alias.ps push
git config --global alias.st status
git config --global alias.ss 'status -s'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment