-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgitconfig
More file actions
90 lines (88 loc) · 2.71 KB
/
gitconfig
File metadata and controls
90 lines (88 loc) · 2.71 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
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
[alias]
a = add -u
ap = add --patch
br = branch --sort=committerdate
bra = branch --all
ca = commit --amend --no-edit
ci = commit
cim = commit -m
co = checkout
cob = checkout -b
cp = cherry-pick
df = diff
dfc = "!git log --left-right --graph --cherry-mark --oneline HEAD...$1"
dfo = "!git shortlog --no-merges HEAD...$1"
dfs = diff --staged
dom = diff origin/master -w
dum = diff upstream/master -w
f = fetch
fa = fetch --all
# ASCII art log
lgg = log --decorate --oneline --graph --branches --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold blue)(%ar) %C(bold yellow)%d%C(reset) %C(green)%s%C(reset) %C(dim green)- %an%C(reset)'
# Show which 'f'iles changed. Super useful!! -- with ASCII art log
lg = log --decorate --oneline --graph --branches --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold blue)(%ar) %C(bold yellow)%d%C(reset) %C(green)%s%C(reset) %C(dim green)- %an%C(reset)' --stat
# Show which 'f'iles changed. Super useful!! -- with regular log
logf = log --name-status
lp = log -p --stat
pl = pull
plom = pull origin master
plum = pull upstream master
pr = pull-request
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
prom = pull --rebase origin master
prum = pull --rebase upstream master
pu = push
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rmt = remote -v
rom = rebase origin/master -i
rum = rebase upstream/master -i
sh = stash show -p
st = status
uu = submodule update --remote --init
# List aliases
la = "!git config -l | grep alias | cut -c 7-"
[color]
ui = true
status = true
branch = true
diff = true
[core]
pager = less -F -X -R
preloadindex = true
excludesfile = /home/kvempala/.gitignore
[mergetool "fugitive"]
cmd = vim -f -c \"Gvdiffsplit!\" \"$MERGED\"
[mergetool]
keepBackup = false
[merge]
tool = fugitive
[push]
default = simple
[init]
templatedir = ~/.git_template
[credential]
helper = cache --timeout=432000
[grep]
lineNumber = true
[advice]
detachedHead = false
# Allow local customizations
[include]
path = ~/.gitconfig_local
[user]
name = Kartik Vempala
email = 37914253+vempala@users.noreply.github.com
[pull]
rebase = true
[gc]
pruneexpire = 180 days
[url "bbgithub:"]
insteadOf = https://bbgithub.dev.bloomberg.com
[credential "https://github.com"]
helper =
helper = !/home/kartik/miniconda3/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/home/kartik/miniconda3/bin/gh auth git-credential