-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathgitconfig.erb
120 lines (100 loc) · 2.77 KB
/
gitconfig.erb
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[advice]
skippedCherryPicks = false
[alias]
amend = commit --amend --reuse-message=HEAD
bl = blame -C
br = branch
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
chp = cherry-pick
ci = commit
co = checkout
di = diff
dci = duet-commit
drv = duet-revert
dmg = duet-merge
drb = rebase -i --exec 'git duet-commit --amend'
fixup = commit --amend -c HEAD
hist = log --pretty=format:\"%C(yellow bold)%h%Creset %C(red)%ad%Creset | %s%C(green bold)%d%Creset %C(blue)[%an]%Creset\" --graph --date=short
ignored-files = ls-files --others -i --exclude-standard
l = log --oneline --decorate --graph
ll = log --pretty=medium --decorate --graph --stat
ls = log --name-only --oneline
modified-files = ls-files -m
mru = for-each-ref --sort=-committerdate --count=10 refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
oops = reset --hard 'HEAD@{1}'
patch = !git --no-pager diff --no-color
pt = !"git pull && git trim"
pushf = push --force-with-lease
pushu = push -u origin head
ru = reset --hard '@{u}'
st = status -s -b
sw = switch
timeline = log --graph --branches --pretty=oneline --decorate
trust = "!sh -c 'mkdir -p .git/safe && hash -r'"
unmerged = branch --sort=committerdate --no-merged
unstage = reset HEAD
untracked-files = ls-files -o --exclude-standard
[color]
status = auto
diff = auto
ui = true
[color "branch"]
current = red reverse
local = blue
remote = green
[color "diff"]
meta = 227
frag = magenta bold
old = red bold
new = green bold
plain = white
commit = 227 bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "status"]
added = yellow
changed = green
untracked = cyan
[commit]
cleanup = scissors
gpgsign = true
verbose = true
[core]
safecrlf = warn
autocrlf = input
pager = diff-so-fancy | less --tabs=4 -RFX
[diff]
algorithm = histogram
noprefix = true
[gpg]
format = ssh
[help]
autocorrect = prompt
[init]
defaultBranch = main
[log]
follow = true
[merge]
tool = opendiff
[pull]
ff = only
[push]
default = simple
[rebase]
autostash = true
instructionFormat = %s [%an]
updateRefs = true
[rerere]
enabled = true
autoupdate = true
[url "git@github.com:"]
insteadOf = https://github.com/
insteadOf = git://github.com/
[user]
name = <%= prompt("Your Full Name") %>
email = <%= prompt("Your Email") %>
signingkey = <%= prompt("SSH Public Key") %>