Skip to content

Instantly share code, notes, and snippets.

@thiagomoretto
Created December 29, 2011 18:58
Show Gist options
  • Save thiagomoretto/1535632 to your computer and use it in GitHub Desktop.
Save thiagomoretto/1535632 to your computer and use it in GitHub Desktop.
[core]
editor = vim
[user]
name = "Thiago Moretto"
email = "thiago.moretto@gmail.com"
[alias]
co = checkout
ci = commit
st = status
df = diff
dfc = diff --cached
last = 'cat-file commit HEAD'
pr = pull --rebase
l = log --decorate=full --graph
lf = log --decorate=full --graph --pretty=full
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
last = diff HEAD~1..HEAD
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
blame = auto
[format]
pretty = oneline
*.db
*.log
*.sqlite
*.sqlite3
*.backup
*.bkp
.project
.idea
.settings
CURRENT=$(shell pwd)
default: install
install: prepare
ln -s $(CURRENT)/.gitconfig $(HOME)/.gitconfig
ln -s $(CURRENT)/.gitignore_global $(HOME)/.gitignore_global
update: pull install
pull:
git pull
prepare:
rm -f $(HOME)/.gitconfig
rm -f $(HOME)/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment