-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
53 lines (45 loc) · 1.83 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
[user]
name = mephory
email = [email protected]
signingkey = BE8FC1ACDFA55026
[alias]
st = status -sb
co = checkout
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
ignores = !git ls-files -v | grep "^[[:lower:]]"
pom = push origin master
curbranch = rev-parse --abbrev-ref HEAD
cb = rev-parse --abbrev-ref HEAD
mod = !cd ${GIT_PREFIX:-.} && git status -sb | grep -E '^ ?M' | cut -d' ' -f3 | sort | uniq
modified = !cd ${GIT_PREFIX:-.} && git status -sb | grep -E '^ ?M' | cut -d' ' -f3 | sort | uniq
del = !cd ${GIT_PREFIX:-.} && git status -sb | grep -E '^ ?D' | cut -d' ' -f3 | sort | uniq
deleted = !cd ${GIT_PREFIX:-.} && git status -sb | grep -E '^ ?D' | cut -d' ' -f3 | sort | uniq
con = !cd ${GIT_PREFIX:-.} && git status -sb | grep -E '^ ?UU' | cut -d' ' -f2 | sort | uniq
conf = !cd ${GIT_PREFIX:-.} && git status -sb | grep -E '^ ?UU' | cut -d' ' -f2 | sort | uniq
conflict = !cd ${GIT_PREFIX:-.} && git status -sb | grep -E '^ ?UU' | cut -d' ' -f2 | sort | uniq
unst = !cd ${GIT_PREFIX:-.} && git status -sb | grep -E '^\\?\\?' | cut -d' ' -f2 | sort | uniq
unstaged = !cd ${GIT_PREFIX:-.} && git status -sb | grep -E '^\\?\\?' | cut -d' ' -f2 | sort | uniq
mm = !cd ${GIT_PREFIX:-.} && git status -sb | grep -E '^ ?(AM|MM)' | sed -E 's/^ ?(AM|MM)? //g' | sort | uniq
loglocal = !git log $(git curbranch) ^origin/$(git curbranch)
tree = log --oneline --decorate --graph
sl = stash list --name-status --pretty='format:%gd [%ar]: %s'
dif = diff
tf = touchedfiles
root = !pwd
tracking = rev-parse --abbrev-ref --symbolic-full-name @{u}
[commit]
gpgsign = true
[color]
ui = true
[push]
default = simple
[pull]
rebase = true
[core]
autocrlf = input
pager = "diff-so-fancy | less --tabs=1,5 -R"
[credential]
helper = /usr/lib/git-core/git-credential-libsecret
[gpg]
program = gpg2