-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
42 lines (42 loc) · 1.37 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
[alias]
s = status
ss = status -s
a = !sh -c 'git add $1' -
aa = add --all
c = commit
ca = commit --amend
cm = !sh -c 'commit -m $1' -
amend = !sh -c 'git add --all && git commit --amend' -
commit = !sh -c 'git add --all && git commit -m $1' -
save = !sh -c 'git add --all && git commit -m 'Work in progress'' -
pp = !sh -c 'git pull && git push' -
st = stash
stl = stash list
sta = stash apply
stp = stash pop
stp-sel = !sh -c 'git stash pop stash@{$1}' -
stb = !sh -c 'git stash branch $1' -
sts = !sh -c 'git stash show -p stash@{$1}' -
b = branch
dev = checkout develop
mas = checkout master
ca = !sh -c 'git checkout $1' -
cb = !sh -c 'git checkout -b $1 ' -
mer = !sh -c 'git merge --no-ff $1 ' -
branchcd = branch --sort=-committerdate
branchcdr = for-each-ref --sort=-committerdate refs/heads/
res = reset
resh = reset HEAD --hard
undo-commit = reset HEAD~1
rev = revert
cln = clean -fd
cln-all = clean -fdx
nah=git checkout .
l = !sh -c 'git log --oneline --graph --decorate $1' -
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
dog = log --all --decorate --oneline --graph
wdiff = diff --color-words
gfl = log -u
grem = rebase master
gred = rebase develop
greb = !sh -c 'git rebase $1 ' -