Skip to content

Instantly share code, notes, and snippets.

@zhenyi2697
Last active December 17, 2015 19:39
Show Gist options
  • Save zhenyi2697/5662278 to your computer and use it in GitHub Desktop.
Save zhenyi2697/5662278 to your computer and use it in GitHub Desktop.
Git: set up alias
# Alias for local user
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.st status
git config --global alias.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
git config --global color.ui true
# Global alias for all users
sudo git config --system alias.co checkout
sudo git config --system alias.br branch
sudo git config --system alias.st status
sudo git config --system alias.unstage 'reset HEAD --'
sudo git config --system alias.last 'log -1 HEAD'
sudo git config --system color.ui true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment