-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
65 lines (65 loc) · 1.6 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
[core]
excludesFile = ~/.gitignore
pager = /usr/local/bin/diff-highlight | less
[diff]
tool = vimdiff
[merge]
tool = vimdiff
[difftool]
prompt = false
[color]
ui = auto
[commit]
verbose = true
[include]
path = .gitconfig_local
[user]
name = Cian Ferriter
[push]
default = simple
[credential]
helper = store
[sendemail]
confirm = always
[pull]
ff = only
[checkout]
defaultRemote = origin
[init]
defaultBranch = main
[pw]
server = https://patchwork.ozlabs.org/api/1.2
project = openvswitch
[alias]
alias = ! git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ /
cb = checkout -b
cm = checkout master
fa = fetch --all
; '@{u}' is a shortcut for the upstream branch (origin/<current_branch>).
overwrite-local = reset --hard '@{u}'
ol = overwrite-local
dr = diff '@{u}'
rdr = range-diff '@{u}'...
cr = commit --reuse-message=ORIG_HEAD
ca = commit --amend
can = commit --amend --no-edit
cas = commit --amend --no-edit -s
rc = rebase --continue
rcn = ! GIT_EDITOR=true git rebase --continue
pf = push --force-with-lease
pc = ! git push --set-upstream origin $(git symbolic-ref --short HEAD)
bu = ! git branch --set-upstream-to origin/$(git symbolic-ref --short HEAD)
fixline = log -1 --abbrev=12 --format='Fixes: %h ("%s")%nCc: %ae'
sum = show --no-patch --oneline
so = remote show origin
pro = remote prune origin
subup = submodule update --init
[sequence]
editor = interactive-rebase-tool
[interactive-rebase-tool]
inputMoveUp = k
inputMoveDown = j
inputMoveSelectionUp = Control+k
inputMoveSelectionDown = Control+j
[interactive]
difffilter = /usr/local/bin/diff-highlight