Skip to content

Instantly share code, notes, and snippets.

@robcee
Created January 18, 2023 18:05
Show Gist options
  • Save robcee/39b304ac2e7ba1e52e70e9b7b92772b5 to your computer and use it in GitHub Desktop.
Save robcee/39b304ac2e7ba1e52e70e9b7b92772b5 to your computer and use it in GitHub Desktop.
some useful git aliases and config options
alias.undo=reset --soft HEAD^
alias.stash-all=stash save --include-untracked
alias.glog=log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
alias.dlog=log --oneline
alias.edconfig=config --global -e
alias.co=checkout
alias.cb=checkout -b
alias.stat=status
core.autocrlf=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment