-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
44 lines (44 loc) · 1.38 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
[push]
default = current
[color]
branch = auto
diff = auto
status = auto
ui = auto
[format]
pretty = %Cblue%h%Creset %Cgreen[%ar]%Creset (%an) %s
[alias]
a = !git add -u && git add . && git status -s
adi = !git add -u && git add . && git diff --cached
ap = commit --amend -C HEAD
bd = !sh -c 'git branch -D $1 && git push origin :$1' -
c = commit -v
ca = commit --amend
co = checkout
cp = cherry-pick
di = diff
dic = diff --cached
mm = !test `git rev-parse master` = $(git merge-base HEAD master) && git checkout master && git merge HEAD@{1} || echo "Non-fastforward"
plre = pull --rebase
pr = remote prune origin
ps = push
rbc = rebase --continue
rbi = rebase -i
st = status -s
unwip = !test "`git log -n1 --pretty=format:%s`" = "wip" && git reset HEAD~1
up = !git fetch origin && git rebase origin/master
wip = !git add -A && git commit -m "wip"
local = for-each-ref --sort=committerdate 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))'
ongoing = local --no-merge=master
[core]
excludesfile = ~/.gitignore
autocrlf = input
editor = nvim
[user]
name = Piotr Gębala
email = [email protected]
[pull]
# default = rebase
rebase = true
[rebase]
autoStash = true