-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
98 lines (98 loc) · 3.06 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[user]
email = [email protected]
name = J. Greg Williams
[alias]
alias = config --get-regexp ^alias.
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
brs = br -avv
branches = branch -avv
ci = commit
co = checkout
contrib = shortlog -e --summary --numbered
dump = cat-file -p
email = log --format="%aN <%aE>"
find = "!git log --color -p -S "
hist = log --graph --pretty=format:'%Cred%h%Creset %s%C(yellow)%d%Creset %Cgreen(%cr)%Creset [%an]' --abbrev-commit --date=relative
last = log -1 HEAD --stat # view last commit
ll = log --decorate --oneline --graph --numstat
ls = log --decorate --oneline --graph
pretty = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
recent = !git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads/ | head -n 100
remotes = remote -v
review = "log master..origin/master"
size = "count-objects -vH"
st = status -sb
staged = diff --staged # view the diff of what is currently staged
today = diff --stat 'HEAD@{midnight}'
tree = log --graph --oneline --all
type = cat-file -t
unstage = reset HEAD -- # Remove filename from the staging area
yesterday = diff --stat 'HEAD@{yesterday}' 'HEAD@{midnight}'
start-repo = !git init . && git add . && git commit --allow-empty -m \"Initialize repository\"
[color]
branch = auto
diff = auto
status = auto
interactive = auto
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
frag = magenta bold
meta = yellow bold
new = green bold
old = red bold
whitespace = red reverse
[color "status"]
added = green
changed = yellow
untracked = cyan
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[status]
submoduleSummary = true
[commit]
gpgsign = true
; template = \"$HOME\"/.stCommitMsg
[push]
default = current
autoSetupRemote = true
[core]
excludesfile = /Users/totally/.gitignore_global
autocrlf = input
pager = delta
[github]
user = [email protected]
[diff]
tool = vimdiff
colorMoved = default
[merge]
tool = vimdiff
conflictstyle = diff3
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only
[add.interactive]
useBuiltin = false # required for git 2.37.0
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color
[tag]
sort = version:refname
[safe]
directory = /Users/totally/Repositories/vde_vmnet
directory = /Users/totally/Repositories/vde_vmnet/vde-2
; [gpg]
; program = /usr/local/bin/gpg
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Users/totally/Applications/Ops/Organization/Source Control/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true