Skip to content

Instantly share code, notes, and snippets.

@mbokman
Created March 29, 2012 06:08
Show Gist options
  • Save mbokman/2234029 to your computer and use it in GitHub Desktop.
Save mbokman/2234029 to your computer and use it in GitHub Desktop.
Global git config
[user]
name = Martin Bokman
email = martin@bokman.org
[core]
excludesfile = /Users/mbokman/.gitignore_global
editor = /usr/local/bin/mate -w
# always commit unix line endings (http://help.github.com/line-endings/)
autocrlf = input
[color]
diff = auto
status = auto
branch = auto
interactive = auto
# ~/.gitignore_global
#
# Mac stuff
.DS_Store
# Sublime Text project and workspace files
*.sublime-project
*.sublime-workspace
# ignore copied svn files
.svn/*
@mbokman
Copy link
Author

mbokman commented Mar 29, 2012

git config --global --add user.name "Martin Bokman"
git config --global --add user.email martin@bokman.org

git config --global core.excludesfile ~/.gitignore_global

git config --global --list

I think non-global settings can be done by replacing --global with --file .gitconfig.

git init
git add .

git commit -m "Initial commit."

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