-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
62 lines (62 loc) · 2.53 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
54
55
56
57
58
59
60
61
62
[user]
email = [email protected]
name = bessonm
signingkey = 296FEF1F6C41198F
[push]
default = simple
[core]
trustctime = false
editor = nano
fileMode = false
autocrlf = input
[color]
ui = true
[credential]
helper = cache --timeout=3600
[merge]
tool = vimdiff
[mergetool]
keeptemporaries = false
keepbackups = false
prompt = false
trustexitcode = false
[merge "ours"]
driver = true
[alias]
last = log -1 --stat
cp = cherry-pick
co = checkout
cl = clone
ci = commit
st = status -sb
fap = fetch --all --prune
br = branch
unstage = reset HEAD --
dc = diff --cached
l = "!f() { git log -n ${1-10} --pretty=format:'%C(cyan)%G?%Creset %C(auto)%h%d %s%Creset %Cred<%an>%Creset'; }; f"
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative --all
glog = log --graph --oneline --decorate --branches --tags --date-order --full-history
lga = log --graph --decorate --date-order --full-history --pretty=format:'%C(yellow)%h%Creset <%C(red)%an%Creset> (%C(green)%ai%Creset)%C(auto)%d%Creset %s' --all
lgb = log --graph --decorate --date-order --full-history --pretty=format:'%C(yellow)%h%Creset <%C(red)%an%Creset> (%C(green)%ai%Creset)%C(auto)%d%Creset %s'
incoming = "!f() { git fetch --quiet && git log --graph --oneline --date-order --full-history ..@{upstream}; }; f"
outgoing = "!f() { git fetch --quiet && git log --graph --oneline --date-order --full-history @{push}..; }; f"
incoming-all = "!f() { git fetch --quiet && git for-each-ref --format='%(refname:short)' refs/heads | xargs -I {} git log --graph --oneline --decorate --date-order --full-history {}..{}@{upstream}; }; f"
outgoing-all = "!f() { git fetch --quiet && git for-each-ref --format='%(refname:short)' refs/heads | xargs -I {} git log --graph --oneline --decorate --date-order --full-history {}@{push}..{}; }; f"
forget = update-index --assume-unchanged
unforget = update-index --no-assume-unchanged
forgotten = "!f() { git ls-files -v | grep ^[a-z]; }; f"
vimdiff = difftool --no-prompt --tool=vimdiff
ll = ls-files -f
ls = ls-tree --name-only HEAD
sw = switch
rs = restore
swc = switch -c
resign = "!f() { git rebase --exec 'git commit --amend --no-edit -n -S' -i $1; }; f"
pr = "!f() { git fetch origin pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
track = "!f() { git branch --set-upstream-to ${1-origin}/${2-$(git rev-parse --abbrev-ref HEAD)}%; }; f"
[rerere]
enabled = true
[commit]
gpgsign = true
[tag]
forceSignAnnotated = true