forked from totallyGreg/home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
78 lines (78 loc) · 2.28 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
[user]
email = [email protected]
name = J. Greg Williams
; heavy hammer that breaks stuff if your keys aren't installed yet
[includeIf "gitdir:~/Work/"]
path = ~/.solo.gitconfig
[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}'
[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
[core]
excludesfile = /Users/totally/.gitignore_global
autocrlf = input
[github]
user = [email protected]
[diff]
tool = vimdiff
[merge]
tool = vimdiff
[init]
defaultBranch = main
[tag]
sort = version:refname