-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
68 lines (68 loc) · 1.53 KB
/
gitconfig
File metadata and controls
68 lines (68 loc) · 1.53 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
[alias]
co = checkout
ci = commit
st = status
l = !git --no-pager log -n 10
gi = "!gi() { curl -s https://www.gitignore.io/api/$@ ;}; gi"
stat = !git diff --stat
fpull = !git fetch origin && git reset --hard FETCH_HEAD
fpush = !git push --force-with-lease
recent = branch --sort=-committerdate --format="%(committerdate:relative)%09%(refname:short)"
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
show-outdated = !git fetch --all --prune && git branch -vv | grep ': gone]'
cleanup = !git show-outdated | awk '{print $1}' | xargs git branch -D
[color]
diff = auto
status = auto
branch = auto
[core]
excludesfile = $HOME.gitignore
editor = vim
autocrlf = input
[apply]
whitespace = nowarn
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset
[push]
default = simple
autoSetupRemote = true
followTags = true
[help]
autocorrect = prompt
[http]
cookiefile = ~/.gitcookies
[rerere]
enabled = true
autoupdate = true
[init]
defaultBranch = main
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[gpg]
format = ssh
[commit]
gpgsign = true
verbose = true
[include]
path = ~/.gitcredentials
[includeIf "gitdir:~/dev/work/"]
path = ~/.gitcredentials.work
[column]
ui = auto
[branch]
sort = -committerdate
[tag]
sort = version:refname
[diff]
colorMoved = plain
algorithm = histogram
renames = true
[fetch]
prune = true
pruneTags = true
all = true
[pull]
rebase = true