Skip to content

Instantly share code, notes, and snippets.

@richardjortega
Created April 11, 2014 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardjortega/10482218 to your computer and use it in GitHub Desktop.
Save richardjortega/10482218 to your computer and use it in GitHub Desktop.
Easy Git global settings to make your life easier

Set your name and email for your commit messages

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

Exclude git tracking UNIX file permissions: Unix file permissions modes (755=rwxrw_rw_, 644=rw_r__r__) - the old mode included the +x (executable) flag, the new mode doesn't. http://code.google.com/p/msysgit/issues/detail?id=164

$ git config core.filemode false

Make Git pretty for git diff and git status

$ git config --global color.ui true

Set your favorite editor

$ git config --global core.editor emacs

Show your git global settings

$ git config -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment