-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
78 lines (78 loc) · 3.48 KB
/
gitconfig
File metadata and controls
78 lines (78 loc) · 3.48 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
[user]
name = R. Stephens Summerlin
email = Stephens.Summerlin@gtri.gatech.edu
[core]
editor = vim
autocrlf = input
excludesfile = ~/.gitignore
[merge]
tool = vimdiff
conflictstyle = diff3
[log]
date = relative
[blame]
date = relative
[status]
submoduleSummary = true
[format]
pretty = format:%C(yellow)%h %Cblue%>(14)%ar %Cgreen%<(7)%aN%Cred%d %Creset%<(120,trunc)%s
[diff]
#external = ~/.git-bins/git_diff_wrapper
tool = vimdiff
submodule = log
[push]
default = upstream
recurseSubmodules = check
[color]
ui = always
[mergetool "extMerge"]
trustExitCode = true
[alias]
co = checkout
br = branch
bra = branch -vva
ci = commit
sb = show-branch
st = status
rs = reset --mixed HEAD --
lg = log --graph
lc = log @{u}.. # This displays local commits
last = log -1 HEAD
alias = config --get-regexp ^alias\\.
dd = diff --diff-filter=d
diffc = diff --cached
rinfo = remote show origin
modup = submodule update --recursive
rbinfo-merged = !~/.git-bins/rbrinfo-merged
rbinfo-not-merged = !~/.git-bins/rbrinfo-not-merged
binfo-merged = !~/.git-bins/brinfo-merged
binfo-not-merged = !~/.git-bins/brinfo-not-merged
binfo = "!r() { cur=$(git rev-parse --abbrev-ref HEAD); git for-each-ref --sort=-committerdate refs/heads/ --format='%(color:yellow)%(refname:short)|%(color:red)%(objectname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' | sed \"s/m${cur}|/m* ${cur}|/\" | column -ts'|'; }; r"
rbinfo = "!r() { cur=$(git rev-parse --abbrev-ref HEAD); git for-each-ref --sort=-committerdate refs/remotes/ --format='%(color:yellow)%(refname:short)|%(color:red)%(objectname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' | sed \"s/m${cur}|/m* ${cur}|/\" | column -ts'|'; }; r"
abinfo = "!r() { cur=$(git rev-parse --abbrev-ref HEAD); git for-each-ref --sort=-committerdate refs/remotes/ refs/heads/ --format='%(color:yellow)%(refname:short)|%(color:red)%(objectname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' | sed \"s/m${cur}|/m* ${cur}|/\" | column -ts'|'; }; r"
d = difftool
apply-gitignore = !git ls-files -ci --exclude-standard -z | xargs -0r git rm --cached
fixup = !sh -c 'REV=$(git rev-parse $1) && git commit --fixup $@ && git rebase -i --autosquash $REV^' -
squash = !sh -c 'REV=$(git rev-parse $1) && git commit --squash $@ && git rebase -i --autosquash $REV^' -
ec = config --global -e
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
cob = checkout -b
cm = commit -m
save = !git add -A && git commit -m "SAVEPOINT"
cam = commit -am
ap = add -p
wip = !git add -u && git commit -m "WIP"
undo = reset HEAD~1 --mixed
amend = commit -a --amend
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
bclean = "!f() { git branch --merged ${1-HEAD} | grep -v " ${1-HEAD}$" | xargs -r git branch -d; }; f"
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"
linearize = filter-branch --parent-filter 'cut -f 2,3 -d " "'
amdate = commit --amend --date="$(date -R)"
[difftool]
prompt = false
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true