blob: 9ce6c460b0cca73bed78f3dd6256dc875a8e3ee6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
[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"
ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi"
merge-branch = "!f() { git checkout $1; git pull; git checkout -b merge/$1/$2; git merge $2 ;}; f"
[push]
default = simple
[pull]
ff = only
[init]
defaultBranch = main
|