-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
56 lines (55 loc) · 2.19 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
[user]
name = Fredrik Löfgren
email = [email protected]
[push]
default = simple
followTags = true
[pull]
ff = only
[color]
ui = auto
[color "branch"]
current = green reverse
local = green
remote = yellow
[diff]
tool = diffmerge
[alias]
st = status
ci = commit
co = checkout
br = branch
fb = checkout -b
lg = log --color --graph --pretty=format:'%C(yellow)%h%Creset -%C(cyan)%d%Creset %C(white)%s%Creset %C(white dim)(%cr)%Creset %C(brightgreen)%aN%Creset %C(magenta)%aE%Creset' --abbrev-commit --branches
lgb = log --color --pretty=format:'%C(yellow)%h%Creset -%C(cyan)%d%Creset %C(white)%s%Creset - %C(brightgreen)%aN%Creset %C(magenta)%aE%Creset' --abbrev-commit --date=format-local:'%Y-%m-%d'
lgd = log --color --date=format-local:'%Y-%m-%d' --pretty=format:'%C(yellow)%h%Creset -%C(cyan)%d%Creset %C(white)%s%Creset - %C(brightgreen)%ad%Creset %C(magenta)%aE%Creset' --abbrev-commit
dsf = "!f() { [ -z \"$GIT_PREFIX\" ] || cd \"$GIT_PREFIX\" && git diff --color \"$@\" | diff-so-fancy | less --tabs=4 -RFX; }; f"
showf = "!f() { [ -z \"$GIT_PREFIX\" ] || cd \"$GIT_PREFIX\" && git show --color \"$@\" | diff-so-fancy | less --tabs=4 -RFX; }; f"
start = !git init && git commit --allow-empty -m \"chore(repo): root commit\"
file = "showf --pretty="" --name-status"
gone = ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs git branch -D"
[core]
editor = nano
excludesfile = /Users/lofgrenfredrik/.gitignore_global
# Make `git rebase` safer on macOS
# More info: <http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/>
trustctime = false
# Prevent showing files whose names contain non-ASCII symbols as unversioned.
# http://michael-kuehnel.de/git/2014/11/21/git-mac-osx-and-german-umlaute.html
precomposeunicode = false
[rerere]
enabled = true
[credential]
helper = osxkeychain
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[includeIf "gitdir:~/Repos/weahead_repos/"]
path = ~/Repos/weahead_repos/.gitconfig