Skip to content

Instantly share code, notes, and snippets.

@b2977053
Last active April 14, 2020 07:33
Show Gist options
  • Save b2977053/e5403ce398e9f450205bc42e0f6605c7 to your computer and use it in GitHub Desktop.
Save b2977053/e5403ce398e9f450205bc42e0f6605c7 to your computer and use it in GitHub Desktop.
git config --global alias.st status
git config --global alias.sts 'status -s'
git config --global alias.addall add .
git config --global alias.readd restore --staged
git config --global alias.cm commit
git config --global alias.lol 'log --oneline'
git config --global alias.type 'cat-file -t'
git config --global alias.dump 'cat-file -p'
git config --global alias.b branch
git config --global alias.ba 'branch -a'
git config --global alias.br 'branch -r'
git config --global alias.co checkout
git config --global alias.remo remote
git config --global alias.remos 'remote show'
git config --global alias.remoa 'remote add'
git config --global alias.remod 'remote remove'
git config --global alias.remoname 'remote rename'
git config --global alias.remov 'remote -v'
git config --global alias.df diff
git config --global alias.ll "log --pretty=format:'%h %ad | %s%d [%Cgreen%an%Creset]' --graph --date=short"
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset %ad |%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset [%Cgreen%an%Creset]' --abbrev-commit --date=short"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment