-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
48 lines (47 loc) · 1.44 KB
/
gitconfig
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[user]
name = Andrew Ash
email = [email protected]
[core]
editor = vim
[merge]
tool = vimdiff
[alias]
br = branch --sort=-committerdate
ci = commit --verbose
co = checkout
cp = cherry-pick
dc = diff --cached -M
ds = diff --stat -r
lg = log --graph --oneline --decorate
lgs = log --oneline --decorate
st = status
ff = pull --ff-only
hlog = log --date-order --all --graph --format=\"%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d%Creset%s\"
hlogs = log --date-order --graph --format=\"%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d%Creset%s\"
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 "
sign = commit --amend -S --no-edit
# from https://stackoverflow.com/a/14247783/120915
children = "!f() { git rev-list --all --not $1^@ --children | grep $(git rev-parse $1); }; f" # reachable children of a ref
uncommit = reset HEAD^
[color]
branch = auto
diff = auto
status = auto
[branch]
autosetuprebase = always
[push]
default = simple
autoSetupRemote = true
[commit]
verbose = true
gpgsign = true
[tag]
gpgsign = true
forceSignAnnotated = true
[core]
pager = delta --dark
fsmonitor = true
[rebase]
autoStash = true
[feature]
manyFiles = true