Skip to content

Instantly share code, notes, and snippets.

@yonzin
Last active February 10, 2021 16:24
Show Gist options
  • Save yonzin/f8173d906c0d476506d0c8de0110f489 to your computer and use it in GitHub Desktop.
Save yonzin/f8173d906c0d476506d0c8de0110f489 to your computer and use it in GitHub Desktop.

useful git aliases

git config --global alias.st 'status -sb'
git config --global alias.ll 'log --oneline'
git config --global alias.last 'log -1 HEAD --stat'
git config --global alias.cm 'commit -m'
git config --global alias.rv 'remote -v'
git config --global alias.d 'diff'
git config --global alias.gl 'config --global -l'
git config --global alias.br 'branch'

Autocorrect your aliases

git config --global help.autocorrect 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment