-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
66 lines (66 loc) · 1.98 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
[user]
name = Kiril Vladimirov
email = [email protected]
[init]
defaultBranch = master
[github]
user = vladimiroff
[color]
ui = true
[core]
editor = vim
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[branch]
autosetuprebase = always
[merge]
tool = fugitive
[diff]
tool = vimdiff
compactionHeuristic = true
[difftool]
cmd = vimdiff $LOCAL $REMOTE
prompt = false
[pull]
rebase = true
[push]
default = tracking
[alias]
c = "!git checkout $(git fzf-branch)"
amend = commit --amend
bc = !git rev-parse --abbrev-ref HEAD | wl-copy
b = branch
co = checkout
l = log --graph --all --abbrev-commit --date=relative --date-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(bold red)%h%C(reset) - %C(cyan)(%ai)%C(reset) %C(bold green)%s%C(reset) %C(bold blue) - %an <%aE>%C(reset) %C(bold red)[%GK]%C(reset)%C(bold yellow)%d%C(reset)'
ll = log --graph --all --oneline --decorate
ls = ls-files
st = status
sync = !git pull && git push
tree = log --graph --simplify-by-decoration --all --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(bold red)%d%C(reset) - %C(cyan)(%ad)%C(reset) %C(bold green)%s%C(reset) %C(bold blue) - %an <%aE>%C(reset) %C(bold red)[%GK]%C(reset)'
root = rev-parse --show-toplevel
undo = reset --soft HEAD^
wip = for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[http]
cookiefile = /home/kiril/.gitcookies
[mergetool "fugitive"]
cmd = vim -f -c \"Gvdiffsplit!\" \"$MERGED\"
[url "git://anongit.kde.org/"]
insteadOf = kde:
[url "ssh://[email protected]/"]
pushInsteadOf = kde:
[url "[email protected]:"]
pushInsteadOf = kde:
[url "[email protected]:"]
insteadOf = https://gitlab.com/
# vim: set filetype=.gitconfig: