-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitconfig
42 lines (42 loc) · 1.61 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
[user]
name = Martin Hradil
email = [email protected]
signingkey = 08C56F0EC1634DD2
[color]
ui = auto
[alias]
aliases = "! git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'"
ap = add -p
b = branch -v
box = "! f() { git fetch upstream pull/$1/head && git checkout FETCH_HEAD && GIT_EDITOR=\"sed -i '2,\\$s/pick/squash/'\" git rebase -i master && git commit --amend -m \"[WIP] PR-in-a-box #$1\" ; }; f"
br = "branch -av"
branch-name = "symbolic-ref -q --short HEAD"
cp = cherry-pick -x
current-remote = "! git config branch.$(git branch-name).remote"
exec = ! exec
fap = fetch --all -p
fixup = "! HASH=$([ $1 ] && echo $1 || echo `git rev-parse HEAD`) && git commit --fixup=$HASH && EDITOR=: git rebase -i --autosquash $HASH~1 && echo"
journal = log --since=yesterday --author=himdel --format=oneline
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
log = log --date=iso
log-me = "! git log --author $(git config user.email)"
pdiff = diff --patience
pmerge = merge -X patience
pr = "! git branch -D pr$1 ; ( git fetch upstream pull/$1/head || git fetch origin pull/$1/head ) && git checkout FETCH_HEAD && git checkout -b pr$1 -- && echo"
rbi = "! git rebase -i @{u}"
rebase-wtf = show REBASE_HEAD
root = ! pwd
st = status -sb
url = "! f() { git config remote.${1:-$(git current-remote)}.url ; }; f"
yolo = push --force
[core]
whitespace = trailing-space,space-before-tab,cr-at-eol
excludesfile = /home/himdel/.gitignore
[push]
default = simple
[pull]
rebase = true
[protocol]
version = 2
[commit]
gpgSign = true