aboutsummaryrefslogtreecommitdiffstats
path: root/git/.gitconfig
blob: 43a9922c843478d5750a19a295052b032c8c8c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[user]
	name = Tom van der Lee
[alias]
	glog = log --graph --decorate --all --pretty=format:%C(yellow)%h%C(bold\\ red)%d%C(reset)\\ %s%n%C(green)%ar\\ %C(reset)by\\ %C(bold\\ blue)%an%n
	sup = "!f() { git branch --set-upstream-to=$@; }; f"
	ca = commit -am
	st = status -s
	siu = "!f() { git submodule init && git submodule update; }; f"
	ls = ls-files
	serve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
	deploy = "!f() { read -p \"Do you want to push branch $1 to $1/master? [Y/n] \" yn; [ "$yn" == "Y" ] && git push $1{,:master}; }; f"
	cm = commit -m
[push]
	default = simple