Skip to content

Instantly share code, notes, and snippets.

@falsefalse
Created July 31, 2014 11:00
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 falsefalse/d7dd330075999ebe9e55 to your computer and use it in GitHub Desktop.
Save falsefalse/d7dd330075999ebe9e55 to your computer and use it in GitHub Desktop.
Start with this
# mostly taken from http://cheat.errtheblog.com/s/git
[core]
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
# display tab as 2 spaces instead of 8
# http://www.liferay.com/web/raymond.auge/blog/-/blogs/setting-tabwidths-to-match-the-project-settings-in-git-and-vi
pager = less -FXRS -x2
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
st = status
br = branch
ft = fetch
blame = blame --date=short
ci = commit
cia = commit --amend
ciac = commit --amend --reuse-message HEAD
co = checkout
df = diff
dff = diff --cached
ldf = log -p
gl = log --graph
lol = log --graph --decorate --pretty=oneline --abbrev-commit
# fucking typos
tags = tag
[diff]
algorithm = patience
[push]
default = current
[user]
name = <Your Name>
email = <your_email@domain.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment