aboutsummaryrefslogtreecommitdiffstats
path: root/git/.gitconfig
blob: 3e3824b796821f883afa5146e9a5bb7e3a96424b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[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
	ra = "!f() { read -p \"Author email: \" email; [ -n \"${email}\" ] && git config user.email ${email} && git commit --amend --reset-author; }; f"
	merge-to = "!f() { git checkout $1; git merge -; git checkout -; }; f"
[push]
	default = simple
[pull]
	ff = only
[init]
	defaultBranch = main