-
-
Notifications
You must be signed in to change notification settings - Fork 64
/
gitconfig
51 lines (50 loc) · 1.05 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
49
50
51
# ~/.gitconfig_local template
#
# [user]
# email =
# name =
# [github]
# user =
[include]
path = ~/.gitconfig_local
[alias]
co = checkout
cp = cherry-pick
st = status
br = branch
w = whatchanged
amend = commit --amend
unstage = reset HEAD --
# https://stackoverflow.com/a/30998048/8985
find-merge = "!sh -c 'commit=$0 && branch=${1:-HEAD} && (git rev-list $commit..$branch --ancestry-path | cat -n; git rev-list $commit..$branch --first-parent | cat -n) | sort -k2 -s | uniq -f1 -d | sort -n | tail -1 | cut -f2'"
show-merge = "!sh -c 'merge=$(git find-merge $0 $1) && [ -n \"$merge\" ] && git show $merge'"
[apply]
whitespace = nowarn
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[merge]
summary = true
[push]
default = upstream
[diff]
ignoresubmodules = untracked
compactionHeuristic = true
[core]
excludesfile = ~/.gitignore
[heroku]
account = personal
[pull]
rebase = true
[fetch]
prune = true
[submodule]
fetchJobs = 4
[gpg]
program = gpg1
[pager]
branch = false