Skip to content

Instantly share code, notes, and snippets.

@xentek
Created September 12, 2012 20:12
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 xentek/3709555 to your computer and use it in GitHub Desktop.
Save xentek/3709555 to your computer and use it in GitHub Desktop.
my current ~/.gitconfig
[alias]
	ci = commit
	co = checkout
	st = status
	info = status
	svn-diff = !git-svn-diff
	l = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
	lol = log --pretty=oneline --abbrev-commit --graph --decorate
	unstage = reset HEAD
	staged = diff --cached
	unstaged = diff
	current-branch = !git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||'
	# Usage: git track origin/feature-123-login-form
	track = checkout -t
[apply]
	whitespace = warn
[color]
	diff = auto
	status = auto
	branch = auto
	ui = true
[help]
	autocorrect = 1
[status]
	submodule = 1
[push]
	# Only push branches that have been set up to track a remote branch.
	default = current
[core]
	# global .gitignore file
	excludesfile = ~/.gitignore
.DS_Store
*.swp
.svn
Thumbs.db
Thumbs.db.encrypted
@xentek
Copy link
Author

xentek commented Sep 12, 2012

I also recommend taking a look at these git add-ons:

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