Skip to content

Instantly share code, notes, and snippets.

@arathunku
Created August 26, 2015 19:31
Show Gist options
  • Save arathunku/4e10938abcb3e27a7cf5 to your computer and use it in GitHub Desktop.
Save arathunku/4e10938abcb3e27a7cf5 to your computer and use it in GitHub Desktop.
git aliases
#/bin/bash
echo 'alias g=git' >> ~/.zshrc
g config --global alias.ca 'commit --amend --reuse-message=HEAD'
g config --global alias.ci commit
g config --global alias.cp cherry-pick
g config --global alias.cl clone
g config --global alias.co checkout
g config --global alias.f fetch
g config --global alias.b branch
g config --global alias.s status
g config --global color.status.added green
g config --global color.status.modified red
g config --global color.status.untracked blue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment