-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_gitconfig
More file actions
45 lines (30 loc) · 1.16 KB
/
_gitconfig
File metadata and controls
45 lines (30 loc) · 1.16 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
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
# Log of changes on origin not yet on branch (aka hg incoming).
incoming = log HEAD..@{upstream}
# Log of changes on branch not yet on branch (aka hg outgoing).
outgoing = log @{upstream}..HEAD
rpo = remote prune origin
rso = remote show origin
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = !git ls-files -v | grep ^h | cut -c 3-
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}"
ours = "!f() { git checkout --ours $@ && git add $@; }; f"
theirs = "!f() { git checkout --theirs $@ && git add $@; }; f"
ribbon = tag --force _ribbon origin/master
catchup = log --patch --reverse --topo-order _ribbon..origin/master
unstage = reset HEAD --
last = log -1 HEAD
# Delete branches merged into the current branch
dmb = "!git branch --merged | grep -v \"^\\*\" | xargs -n 1 git branch -d"
[color]
ui = auto
[core]
excludesfile = ~/.cvsignore
[diff]
algorithm = patience
[push]
default = simple
[include]
path = .gitconfig.local