-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
48 lines (41 loc) · 1.81 KB
/
Copy pathgitconfig
File metadata and controls
48 lines (41 loc) · 1.81 KB
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
[color]
diff = auto
status = auto
branch = auto
[core]
whitespace = cr-at-eol
editor = vim
[diff]
tool = meld
[http]
sllverify = false
sslverify = false
[user]
name = Atanas Korchev
email = akorchev@gmail.com
[push]
default = tracking
followTags = true
[alias]
co = checkout
d = diff
pl = "!git fetch --all --tags --prune && git rebase --preserve-merges `git rev-parse --abbrev-ref --symbolic-full-name @{u}`"
st = status
qpl = log --pretty=\"%Cblue%h%Creset %Cgreen[%cr]%Creset %s\" origin/production..origin/master
l = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %Cblue%an%Creset' --abbrev-commit --date=relative
copy = "!git checkout production && git pull --rebase && git cherry-pick master && git push && git checkout master"
#############################
# public/private mirrors aliases
#############################
pl = "!git fetch --prune && git rebase --preserve-merges `git rev-parse --abbrev-ref --symbolic-full-name @{u}`"
# Bring alias from public repo to private
put-in-master = "!git checkout master && git pull --rebase && git cherry-pick core/master && git push && git checkout core-master"
# use this when cherry picking from private to public
drop-deleted-by-us = "!git rm `git status --porcelain | grep ^DU | cut -d' ' -f2`"
# do this after all commits are ported from public to private
update-core-tag = "!git tag -f r-private core/master && git push -f core r-private;"
# do this after all commits are ported from private to public
update-master-tag = "!git tag -f r-public origin/master && git push -f origin r-public;"
update-tags = "!git update-core-tag && git update-master-tag"
# skip a cherry-pick when in progres
skip-cherry = "!git reset; git cherry-pick --continue"