wmfairuz
2/23/2015 - 11:42 PM

sample git config

sample git config

[user]
	name = Fairuz Wan Ismail
	email = fairuz.ismail@maylab.my
[alias]
	lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit
	lg2 = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
	lgl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -10
	d = diff
	dc = diff --cached
	a = add
	g = grep --break --heading --line-number
	st = status
	ci = commit -s -m
	br = branch
	co = checkout
	df = diff
	lgp = log -p
	rb = rebase -i
	pullsrb = !git stash save && git pull --rebase origin dev && git stash pop && echo 'Success!'
	amend = commit --amend
	stm = status --untracked=no
	b = branch
	ba = branch -a
	pushc = push origin HEAD:refs/for/dev
	ft = fetch -av
[core]
	autocrlf = true