-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
78 lines (78 loc) · 2.43 KB
/
gitconfig
File metadata and controls
78 lines (78 loc) · 2.43 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
[alias]
a = add
all = all-repos
bl = blame
br = branch
bra = all-repos symbolic-ref --short HEAD
ci = commit
cia = commit --amend
cl = clone
co = checkout
cp = cherry-pick
cpa = cherry-pick --abort
cpc = cherry-pick --continue
cps = cherry-pick --skip
d = diff
dl = pull
dla = all-repos pull
f = fetch --all --prune --tags
fa = all-repos fetch --all --prune --tags
i = "!gi() { curl -L -s https://www.gitignore.io/api/$@; }; gi"
l = log --show-signature
lf = log --pretty=format:'%C(red)%h%C(reset) %C(bold magenta)%G?%C(reset) %C(bold blue)<%an>%C(reset) %C(yellow)%d%C(reset) %C(green)(%cr)%C(reset)%n%w(80,8,8)%s%n' --graph --name-status
ls = log --pretty=format:'%C(red)%h%C(reset) %C(green)%cr%C(reset) %x09 %C(bold blue)%an%C(reset) %x09 %s'
m = merge --commit --no-ff --verify-signatures
ma = merge --abort
pl = "!git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done"
pla = "!echo 'not implemnented...'"
r = reset
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rh = reset --hard HEAD~1
rs = reset --soft HEAD~1
s = stash save
sa = stash apply
sd = stash drop
sh = show
sl = stash list
sls = log --graph --all --pretty=format:'%C(red)%h%C(reset) %x09 %C(green)%cr%C(reset) %x09 %C(bold blue)%an%C(reset) %x08 %C(yellow)%d%C(reset) %s'
sp = stash pop
spark = "!gspark() { git log --format=format:%ad --date=short | uniq -c | awk '{print $1}' | spark; }; gspark"
ss = stash show --patch
st = status
sta = all-repos status
sub = submodule
t = tag
unpushed = log --branches --not --remotes --color --graph --pretty=format:'%C(red)%h%C(reset) %C(bold magenta)%G?%C(reset) %C(bold blue)<%an>%C(reset) %C(yellow)%d%C(reset) %C(green)(%cr)%C(reset)%n%w(80,8,8)%s' --abbrev-commit
unstage = restore --staged
up = push
upf = push -f
w = whatchanged -p --abbrev-commit --pretty=medium
[color]
ui = true
[commit]
gpgsign = true
template = ~/.gitcommitmsg
[core]
editor = vim
excludesfile = ~/.gitignore
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[help]
autocorrect = 1
[init]
defaultBranch = master
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[pull]
rebase = true
[push]
default = simple
autoSetupRemote = true
[user]
email = kamil@kieliszczyk.net
name = Kamil Kieliszczyk
signingkey = 0010B692