Skip to content

Instantly share code, notes, and snippets.

@ccoenen
Created May 14, 2014 15:04
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 ccoenen/3d7650ff0ecfa975b584 to your computer and use it in GitHub Desktop.
Save ccoenen/3d7650ff0ecfa975b584 to your computer and use it in GitHub Desktop.
Git Configuration (Windows)
[user]
name = My Awesome name
[core]
excludesfile = c:/Users/....../.gitignore_global
editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -nosession -noPlugin
autocrlf = false
[push]
default = simple
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN
*.tmp
*.bak
local.properties
.project
.metadata
.classpath
.settings
.loadpath
*.launch
.buildpath
@ccoenen
Copy link
Author

ccoenen commented May 14, 2014

Note that i keep user.email unconfigured in my global config. I switch clients / open source work a lot and i don't really have a sensible default for email in that case. So any time i clone a project i do a git config user.email [insert email here] manually. Without --global.

I also like to use Notepad++ as a default texteditor. The multiInst, nosession and noPlugin switches are essential for "don't mess with currently open instances" and "don't bother me with updates".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment