-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
68 lines (67 loc) · 2.01 KB
/
.gitconfig
File metadata and controls
68 lines (67 loc) · 2.01 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
br = branch
ci = commit -v
st = status -s
visual = !gitk
sl = stash list
sa = stash apply
ss = stash save
sp = stash pop
log-overview = log --graph --pretty=format:'%C(auto)%h%Creset -%C(auto)%d%Creset %s %C(green)(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lo = log --graph --pretty=format:'%C(auto)%h%Creset -%C(auto)%d%Creset %s %C(green)(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
done = "!f() { git branch | grep \"$1\" | cut -c 3- | grep -v done | xargs -I{} git git branch -m {} done-{}; }; f"
# undo from here http://megakemp.com/2016/08/25/git-undo/
undo = "!f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f"
[branch]
autoSetupRebase = local
autoSetupMerge = always
[core]
autocrlf = true
editor = 'C:\\Program Files\\Sublime Text\\subl.exe' -n -w
[color]
ui = auto
[winUpdater]
recentlySeenVersion = 2.25.0.windows.1
[diff]
submodule = log
[status]
submodulesummary = 1
[grep]
lineNumber = true
[log]
decorate = auto
[push]
default = simple
[pull]
ff = only
[merge]
ff = only
tool = smerge
[rebase]
autoStash = true
[stash]
showPatch = true
[credential]
helper = manager
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[mergetool "smerge"]
cmd = smerge mergetool \"$BASE\" \"$LOCAL\" \"$REMOTE\" -o \"$MERGED\"
trustExitCode = true
[clangFormat]
binary = C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\x64\\bin\\clang-format.exe
[credential "helperselector"]
selected = manager-core
[includeIf "gitdir:devel/personal/"]
path = .gitconfig.personal
; include only if a remote with the given URL exists (note
; that such a URL may be provided later in a file or in a
; file read after this file is read, as seen in this example)
# [includeIf "hasconfig:remote.*.url:https://example.com/**"]
# path = foo.inc
# [remote "origin"]
# url = https://example.com/git