-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_gitconfig
More file actions
61 lines (61 loc) · 1.88 KB
/
_gitconfig
File metadata and controls
61 lines (61 loc) · 1.88 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
; vim: set ft=gitconfig:
[alias]
addp = add --patch
amend = commit -a --amend
delete = branch -d
delete-without-merge = branch -D
diffw = diff --word-diff
graph = log --graph --all --decorate --stat --date=iso
head-branch = !git remote show origin | grep HEAD | awk '{print $3}'
local = log --oneline --no-merges
newbranch = checkout -b
pf = push --force-with-lease
remove = remote
removechanges = checkout --
renamebranch = branch -m
staged = diff --staged
submodulelist = "!f() { git config --file .gitmodules --get-regexp path | awk '{ print $2 }'; }; f"
sw = "!f() { git checkout $1 2>/dev/null || git checkout -b $1 origin/$1 2>/dev/null || git checkout -b $1; }; f"
undo = reset HEAD~1 --mixed
unstage = "!f() { git reset HEAD "$@" && gs; }; f"
url = remote -v
wip = commit -am "WIP"
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
[color "diff"]
meta = cyan normal bold
[core]
pager = less
excludesfile = ~/.gitignore_global
[diff]
ignoreSubmodules = dirty
wsErrorHighlight = all
[github]
user = scottrbaxter
[merge]
tool = opendiff
[pager]
branch = false
config = false
diff = false
show = false
stash = false
submodule = false
tag = false
[status]
ignoreSubmodules = dirty
submoduleSummary = true
[credential]
helper = osxkeychain
[diff "sopsdiffer"]
textconv = sops -d
[init]
defaultBranch = master
[pull]
rebase = merges
[include]
path = ~/.gitconfig-user
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true