Skip to content

Instantly share code, notes, and snippets.

@nhtranngoc
Created October 5, 2015 01:04
Show Gist options
  • Save nhtranngoc/5e51e9602aee5dbf2306 to your computer and use it in GitHub Desktop.
Save nhtranngoc/5e51e9602aee5dbf2306 to your computer and use it in GitHub Desktop.
#!/bin/bash
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.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment