-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot-gitconfig
50 lines (43 loc) · 1.73 KB
/
dot-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
[include]
path = ~/.githubconfig
[user]
name = James Lee
email = [email protected]
[push]
default = current
[pull]
ff = only
[alias]
branch-current = rev-parse --abbrev-ref HEAD
bv = branch -vv
c = commit -S --edit
ci = commit -S --edit
co = checkout
land = !"git checkout upstream/master && git m upstream/pull/$1 -em\"Land #$1, \" #"
lol = log --date=iso --graph --pretty=format:'%G? %C(red)%h%C(reset) %C(green)(%cd) %C(reset)-%C(yellow)%d%C(reset) %s %C(bold blue)<%an>%C(reset)' --abbrev-commit
mergelog = log --merges --pretty=format:'[%G?] %Cred%h %p%Creset -%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
m = merge -S --no-ff --edit
nicelog = log --pretty=format:'[%G?] %Cred%h%Creset -%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
pr-url =!"echo https://github.com/jlee-r7/metasploit-framework/pull/new/$1:$2...$(git branch-current) #"
publish = push upstream upstream-master:master
rlsnotes = !"git nicelog --first-parent $1...$2 | sed -r \"s:\\x1B\\[[0-9;]*[mK]::g\" | cut -f 2-99 -d '-' | sort -n | grep -i ' Land' | sed s:Land:PR:g # #"
sign-rebase = !"GIT_SEQUENCE_EDITOR='sed -i s/^pick/e/' sh -c 'git rebase -i $1 && while test -f .git/rebase-merge/interactive; do git commit -S --amend --no-edit --no-verify && git rebase --continue; done' -"
stat = status
st = status
stu = status -u
tryland = !"git checkout upstream/pr/$1 2>/dev/null && git checkout -b land-$1-$2 #"
[color]
ui = true
[color "diff"]
whitespace = red reverse
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[core]
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol,space-before-tab
autocrlf = false
[status]
showUntrackedFiles = no
[mailmap]
file = ~/.mailmap