-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
38 lines (38 loc) · 924 Bytes
/
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
[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`
[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 = current
[help]
autocorrect = 5
[include]
path = ~/.gitcredentials
[http]
cookiefile = ~/.gitcookies
[rerere]
enabled = true
[user]
name = Andreas Litt
email = [email protected]
[init]
defaultBranch = main