Skip to content

Instantly share code, notes, and snippets.

@marutypes
Last active August 19, 2016 18:14
Show Gist options
  • Save marutypes/4088f45e0d80e6e87646e7cff806d91b to your computer and use it in GitHub Desktop.
Save marutypes/4088f45e0d80e6e87646e7cff806d91b to your computer and use it in GitHub Desktop.
# aliases for better names on some commands
git config --global alias.uncommit 'reset --soft HEAD^'
git config --global alias.unstage 'reset'
# aliases for quick typing
git config --global alias.co 'checkout'
git config --global alias.br 'branch'
git config --global alias.cm 'commit'
git config --global alias.st 'status'
git config --global alias.sh 'stash'
git config --global alias.m 'merge'
git config --global alias.f 'fetch'
git config --global alias.d 'diff'
git config --global alias.l 'log'
# remove an alias
git config --global --unset alias.lg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment