Skip to content

Instantly share code, notes, and snippets.

@EngPeterShaker
Last active October 5, 2020 14:51
Show Gist options
  • Save EngPeterShaker/29eecc5e46cfd02913aa056195194a3d to your computer and use it in GitHub Desktop.
Save EngPeterShaker/29eecc5e46cfd02913aa056195194a3d to your computer and use it in GitHub Desktop.
git alias
* `https://githowto.com/aliases`
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.pl pull
git config --global alias.ps push
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
git config --global alias.type 'cat-file -t'
git config --global alias.dump 'cat-file -p'
git config --global alias.fel 'fetch --all'
git config --global alias.fe fetch
git config --global alias.uncm 'reset HEAD~1 --soft'
git config --global alias.psl 'push --force-with-lease'
git config --global alias.psf 'push --force'
git config --global alias.lg git log
git config --global alias.lgo git log --oneline # more succinct output
git config --global alias.lgg git log --oneline --decorate --graph --all
** for one time run all
git config --global alias.co checkout && git config --global alias.ci commit && git config --global alias.st status && git config --global alias.br branch && git config --global alias.pl pull && git config --global alias.ps push && git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" && git config --global alias.type 'cat-file -t' && git config --global alias.dump 'cat-file -p && git config --global alias.fel 'fetch --all'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment