Skip to content

Instantly share code, notes, and snippets.

@derekshirk
Last active August 29, 2015 14:23
Show Gist options
  • Save derekshirk/4a42204f3ee9aac6f15f to your computer and use it in GitHub Desktop.
Save derekshirk/4a42204f3ee9aac6f15f to your computer and use it in GitHub Desktop.
Git-CLI-Aliases
##Use cli aliases.
I love git’s cli and prefer to use it most of times while performing active operations (commit, push, checkout etc.). There is a chance that you’ll get tired of typing the same command on and on and that’s when you find your life-saver represented by git aliases.
$ git config --global alias.co "checkout"
$ git config --global alias.cmm "commit -m"
$ git config --global alias.rh "reset HEAD"
$ git config --global alias.rhh "reset HEAD --hard"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment