Skip to content

Instantly share code, notes, and snippets.

@carolosf
Last active March 9, 2016 16:08
Show Gist options
  • Save carolosf/de515a05d7a57a062893 to your computer and use it in GitHub Desktop.
Save carolosf/de515a05d7a57a062893 to your computer and use it in GitHub Desktop.
aliases for git
#!/bin/bash
# from https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment