-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
110 lines (102 loc) · 3.17 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[user]
name = Dietrich Daroch
email = dietr1ch@acm.org
# signingkey = aoeuaoeuaoeuaoeu
[core]
excludesfile = ~/.gitignore-global
pager = diff-so-fancy | less --tabs=2 -RFX
editor = nvim
;gitproxy = gitproxy
[push]
default = simple
[pull]
ff = only
[color]
ui = 1
diff = true
[alias]
a = add
ua = rm --cached
c = commit
am = commit --amend
f = fetch
fa = fetch --all
cl = clone
CL = clone --recursive
co = checkout
br = branch
r = rebase -i
rc = rebase --continue
ra = rebase --abort
branch-name = rev-parse --abbrev-ref HEAD
rv = remote -v
ls = "!sh -c 'git ls-tree --name-only -r $(git branch-name)'"
lsb = ls-tree --name-only -r
p = pull
pp = push
ppu = push --set-upstream
PP = push --force-with-lease
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!sh -c 'git push -u origin $(git branch-name)'"
# Delete the remote version of the current branch
unpublish = "!sh -c 'git push origin :$(git branch-name)'"
h = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
# Ignore changes on a file. Useful for temporary changes to tracked files
ign = update-index --assume-unchanged
# Reverse the above
unign = update-index --no-assume-unchanged
# Show the files that are currently assume-unchanged
ignored = "!git ls-files -v | grep ^h | cut -c 3-"
lla = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%<(12)%ar)%C(reset) %s% %C(dim white) - %an %C(auto)%d%C(reset)' --all
ll = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%<(12)%ar)%C(reset) %s% %C(dim white) - %an %C(auto)%d%C(reset)'
la = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%<(12)%ar)%C(reset) %s% %C(dim white) - %an %C(auto)%d%C(reset)' --all
l = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%<(12)%ar)%C(reset) %s% %C(dim white) - %an %C(auto)%d%C(reset)'
s = status
ss = status .
d = diff
dw = diff --ignore-all-space
ds = diff --stat
dc = diff --cached
dcs = diff --cached --stat
e = "!exec "
exec = "!exec "
[log]
decorate = full
;KDE Git repos
[url "git://anongit.kde.org/"]
insteadOf = kde:
[url "git@git.kde.org:"]
pushInsteadOf = kde:
;Github
[url "git@github.com:"]
insteadOf = "gh:"
pushInsteadOf = "https://github.com/"
pushInsteadOf = "http://github.com/"
pushInsteadOf = "git://github.com/"
pushInsteadOf = "gh:"
;BitBucket
[url "git@bitbucket.org:"]
insteadOf = "bb:"
pushInsteadOf = "https://bitbucket.org/"
pushInsteadOf = "http://bitbucket.org/"
pushInsteadOf = "git://bitbucket.org/"
pushInsteadOf = "bb:"
;gist
[url "git@gist.github.com:"]
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[url "git@git.kde.org:"]
pushInsteadOf = kde:
[github]
user = Dietr1ch
# password = asdf123
# oauth-token = aoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeu
[magithub]
online = false
[magithub "status"]
includeStatusHeader = false
includePullRequestsSection = false
includeIssuesSection = false