-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
33 lines (33 loc) · 1.05 KB
/
gitconfig
File metadata and controls
33 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[user]
name = memcmp
email = aa4y1cjo@anonaddy.me
[core]
excludesfile = ~/.gitignore
editor = nvim
[alias]
st = status -s
stl = status
co = commit
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
killbranches = !git branch --merged | grep -v '^*' \
| grep -v master | xargs git branch -d 2> /dev/null
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
ours = "!f() { git checkout --ours $@ && git add $@; }; f"
theirs = "!f() { git checkout --theirs $@ && git add $@; }; f"
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f"
utccommit = !TZ=UTC git commit
[push]
default = current
[rebase]
autosquash = false
[pager]
stash = false
[rerere]
enabled = 1
[color]
diff = true
ui = true
[pull]
ff = only