-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
49 lines (49 loc) · 1.42 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
[user]
name = John Kegelman
email = [email protected]
[core]
editor = vim
trustctime = false
filemode = false
excludesfile = ~/.gitignore_global
[push]
default = simple
[color]
ui = true
[credential]
helper = cache --timeout=3600
[merge]
tool = vimdiff
[mergetool]
keeptemporaries = false
keepbackups = false
prompt = false
trustexitcode = false
[alias]
bclean = "!f() { git branch --merged ${1-reviewed/master} | grep -v " ${1-reviewed/master}$" | xargs -r git branch -d; }; f"
boom = reset --hard HEAD
br = branch
branch-name = "!git rev-parse --abbrev-ref HEAD"
caa = commit --all --amend --no-edit
ci = commit
cia = commit --amend --no-edit
cf = clang-format
cl = clone
co = checkout
cp = cherry-pick
dc = diff --cached
df = diff
dlc = diff --cached HEAD^
f = "!git ls-files | grep -i"
gr = grep -Ii
la = "!git config -l | grep alias | cut -c 7-"
lc = log -1 --numstat
ld = log --pretty=format:"%C(yellow)%h\\ %cr%Cred%d\\ %Creset%s%Cblue\\ [%an]"
lds = log --pretty=format:"%C(yellow)%h\\ %cd%Cred%d\\ %Creset%s%Cblue\\ [%an]" --date=short
lg = log --graph --pretty=format:"%C(yellow)%h\\ %Creset-%Cred%d%\\ Creset%s\\ %C(yellow)%cr%Cblue\\ [%an]" --all
ll = log --pretty=format:"%C(yellow)%h\\ %cd%Cred%d\\ %Creset%s%Cblue\\ [%an]" --date=short --numstat
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%an]"
sl = stash list
st = status -sb
unstage = reset HEAD --
dl = "!git ll -1"