-
Notifications
You must be signed in to change notification settings - Fork 10
/
.gitconfig
105 lines (93 loc) · 3.01 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[user]
name = Eric Dallo
email = [email protected]
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[apply]
whitespace=fix
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
ci = commit
br = branch
co = checkout
df = diff -b
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an, %cr)%Creset' --abbrev-commit --date=relative
ph = push origin HEAD
pheroku = push heroku HEAD
last = cat-file commit HEAD
sta = ls-files --exclude-per-directory=.gitignore \
--exclude-from=.git/info/exclude \
-t -o -u -s -m -d
st = status
cat = -p cat-file -p
fu = fetch origin
pum = pull origin HEAD
fupum = !git co $(git branch | cut -c 3- | grep -E '^master$|^main$') && git fu && git pum
upstream = !git fetch upstream && git merge upstream/master master && git ph -f
rebasemaster = !branch=\"`git branch 2>/dev/null | grep \\* | awk '{ print $2 }'`\" && echo \"Rebasing $branch from master...\" && git fupum && git co $branch && git rebase master
cob = !git fetch origin && git co -b $1 origin/$1 && echo \"Checked out origin branch:\"
cod = "!git br -D $1 2> /dev/null; git cob $1"
cia = !git ci --amend --no-edit
top = !eval cd "$(pwd)/$(git rev-parse --show-cdup)" && pwd
push-head = !git push origin `git symbolic-ref HEAD`
publish = push publish
pushall = !git remote | xargs -n1 git push
pushalltags = !git remote | xargs -n1 git push --tags
tblog = log --not-grep='Auto-increment of build number due to changes in directory '
tbk = !gitk --not-grep='Auto-increment of build number due to changes in directory '
vgc = repack -f -a -d --depth=250 --window=250
nvgc = !ionice -n7 nice -n20 git vgc
findnext = rev-list --reverse -n1 HEAD..master
checkoutnext = !git checkout `git findnext`
edit-last-commit = !vim `git diff-tree -r --name-only HEAD HEAD~1`
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
ls = !git lg
[merge]
tool = vimdiff
[core]
editor = vim
[diff]
tool = difftastic
merge = p4merge
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[mergetool "diffmerge"]
cmd = "diffmerge --merge --result=\"$MERGED\" \"$LOCAL\" \"$(if test -f \"$BASE\"; then echo \"$BASE\"; else echo \"$LOCAL\"; fi)\" \"$REMOTE\""
trustExitCode = true
[mergetool "p4merge"]
cmd = /Applications/p4merge.app/Contents/MacOS/p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
keepTemporaries = false
trustExitCode = false
keepBackup = false
[push]
default = simple
[commit]
gpgsign = true
[url "[email protected]:"]
insteadOf = https://github.com/
[github]
user = ericdallo
[pull]
rebase = false
[credential]
helper = cache --timeout=36000