-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
79 lines (72 loc) · 1.86 KB
/
.gitconfig
File metadata and controls
79 lines (72 loc) · 1.86 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[user]
name = Calin Capitanu
email = calincapitanu@gmail.com
[github]
user = capitanu
[core]
excludesfile = ~/.config/git/.gitignore
filemode = false
[alias]
A = add -A
amend = commit -S --amend
cane = commit --amend --no-edit
b = branch -rv
c = commit -S
cam = commit -S -am
cm = commit -S -m
co = checkout
cob = checkout -b
cod = checkout develop
com = checkout master
cp = cherry-pick
cpa = cherry-pick --abort
cpc = cherry-pick --continue
d = diff
d1 = diff HEAD~1
d2 = diff HEAD~2
d3 = diff HEAD~3
d4 = diff HEAD~4
d5 = diff HEAD~5
dh = diff HEAD
dm = diff master
dnm = diff --name-only master
dt = difftool
fall = fetch --all
fixup = commit --fixup
l = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
#l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an> (%G?)%Creset' --abbrev-commit
lo = log --color --stat
p = push
pall = pull --all
patch = apply --reject --ignore-whitespace --ignore-space-change
pod = push origin develop
pom = push origin master --tags
ra = rebase --abort
rao = remote add origin
rc = rebase --continue
rl = reflog --date=iso --decorate
rom = rebase origin/master
s = status -s
sl = shortlog
ss = status
autosquash = rebase -i --autosquash
t = tag -s
tl = tag --sort "v:refname"
unstage = reset --soft HEAD
pr = "!firefox $(git remote -v | grep push | awk '{print $2}' | awk -F \"@\" '{print $2}' | awk -F \".git\" '{print $1}' | tr ":" "/" | xargs echo \"https://\" | awk '{print $1 $2}')/pull/new/$(git rev-parse --abbrev-ref HEAD)"
[Color]
ui = auto
[color "branch"]
current = green
local = blue
remote = yellow
[color "diff"]
new = green
old = red
frag = magenta
meta = blue
[color "status"]
added = green bold
removed = red
changed = green
untracked = cyan