-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
95 lines (95 loc) · 2.25 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
[user]
name = Tadas Scerbinskas
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore_global
editor = vim
warnambiguousrefs = false
attributesfile = ~/.gitattributes
[alias]
st = status
s = status -sb
co = checkout
b = branch
br = branch --sort=-committerdate --format="%(committerdate:relative)%09%(refname:short)"
ci = commit -v
cins = -c commit.gpgsign=false commit -v
cia = commit -av
fu = commit --fixup
ap = add -p
m = merge
sp = stash pop
cp = cherry-pick
type = cat-file -t
dump = cat-file -p
d = diff -b
dc = diff --cached
lg = log --graph --pretty=format:'%C(yellow)%h%Creset%C(red)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
l = !git lg -10
ls = ls-files
ignored = ls-files -o -i --exclude-standard
discard = checkout -- .
rmmissing = "!ruby -e 'x = `git st`;files = x.split(\"\n\").select{|x|x=~/deleted/ }.map{|x|x.split(\" \")[2]}.join(\" \"); files.each{|f| `git rm #{f}`}'"
praise = blame
unstage = reset HEAD .
uncommit = reset HEAD^
ready = rebase -i @{u}
g = grep --break --heading --line-number
delete-merged-branches = !git branch --merged | grep -v '*' | xargs -n 1 git branch -d
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
prune = fetch --prune
stash-all = stash save --include-untracked
sta = stash save --include-untracked
[github]
user = tadassce
[difftool]
prompt = false
[mergetool]
keepBackup = true
[push]
default = current
autoSetupRemote = true
[pull]
default = tracking
rebase = true
[grep]
extendRegexp = true
lineNumber = true
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[commit]
template = ~/.gitmessage
gpgsign = true
[rebase]
autoStash = true
[diff]
noprefix = true
tool = vimdiff
algorithm = patience
[init]
defaultBranch = main
[include]
path = ~/.gitconfig_private