-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
71 lines (71 loc) · 1.94 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
[user]
name = Jordan Elver
email = [email protected]
signingkey = 9D643F8DA49A88AC
[color]
branch=auto
diff=auto
status=auto
ui = always
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"
[pager]
diff = diff-so-fancy | less --tabs=4 -RFX
show = diff-so-fancy | less --tabs=4 -RFX
[core]
excludesfile = "~/.gitignore"
editor = /usr/local/bin/nvim
[alias]
a = add
ap = add --patch
amend = commit --amend
branches = branch -a
ci = commit
co = checkout
c = "!git branch | fzf | cut -c3- | xargs -o git checkout"
cot = "!tickets | fzf | sed 's/ /-je-/' | sed 's/ /-/g' | awk '{print tolower($0)}' | xargs -o git checkout -b"
d = diff
db = "!git branch | fzf | cut -c3- | xargs -o git branch -D"
discard = checkout --
fixup = "!git log -n 50 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"
l = log --pretty=format:"%C(yellow)%h%C(cyan)%x09%an%Creset%x09%C(magenta)%ar%x09%Creset%s" -20
last = log -1 HEAD
ll = log --pretty=format:"%C(yellow)%h%C(cyan)%x09%an%Creset%x09%C(magenta)%ar%x09%Creset%s"
pf = push --force-with-lease
pr = "!ticketno=`git branch | grep '*' | cut -c3- | cut -d- -f1`;tickets | fzf -q $ticketno | hub pull-request -F -"
undo = "!git reset --soft HEAD~; git reset"
remotes = remote -v
rbc = rebase --continue
rba = rebase --abort
s = status
staged = diff --staged
stashes = stash list
timeline = log --oneline --graph --all
unstage = reset -q HEAD --
wip = commit -m "WIP"
[branch]
autosetuprebase = always
[commit]
template = "~/.git-commit-template"
verbose = true
gpgsign = true
[push]
default = simple
[help]
autocorrect = 1
[diff]
colorMoved = zebra
[rebase]
autosquash = true
[interactive]
singleKey = true