-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
50 lines (50 loc) · 1.24 KB
/
gitconfig
File metadata and controls
50 lines (50 loc) · 1.24 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
[user]
name = Matthew Lindner
email = mattlindn@gmail.com
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
local = yellow
current = yellow reverse
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
excludesfile = ~/.gitignore-global
editor = nvim
[merge]
ff = false
[pull]
ff = only
[alias]
tree = log --oneline --decorate --all --graph
onetree = log --oneline --decorate --graph
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short
ignore = update-index --skip-worktree
unignore = update-index --no-skip-worktree
ignored = !git ls-files -v | grep \"^S\"
sco = !sh -c \"git branch -a | grep -v remotes | grep $1 | head -1 | xargs git checkout\"
sp = stash pop --index
pb = "!f() { git fetch origin $1:$1; }; f"
pf = push --force-with-lease
fp = push --force-with-lease
alias = !f() { git config --global alias.$@ }
co = checkout
ca = commit --amend --no-edit
dc = diff --staged
[bash]
showDirtyState = false
[diff]
colorMoved = dimmed-zebra
[init]
defaultBranch = master