-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
26 lines (26 loc) · 1.56 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
[alias]
st = status
co = checkout
logtree = log --pretty=format:\"%h %s\" --graph -10
flogtree = log --graph --oneline --decorate -20
undo = reset --soft HEAD~1
unstage = reset HEAD --
last = log -1 HEAD
cp = cherry-pick
comm = commit -v
com = commit -v
fp = fetch --prune --all
cleann = clean -X -d -n
cleanf = clean -X -d -f
str = "!git status || : && git submodule foreach --recursive \"git status || :\"" # status recursive
cor = "!git checkout $1 $2 $3 $4 || : && git submodule foreach --recursive \"git checkout $1 $2 $3 $4 || :\"" # checkout recursive
pullr = "!git pull && git submodule foreach --recursive \"git pull\"" # fetch prune recursive
fpr = "!git fetch --prune --all || : && git submodule foreach --recursive \"git fetch --prune --all || :\"" # fetch prune recursive
rr = "!git rebase $1 || : && git submodule foreach --recursive \"git rebase $1 || :\"" # rebase recursive
mr = "!git merge $1 || : && git submodule foreach --recursive \"git merge $1 || :\"" # merge recursive
dbr = "!git branch -d $1 || : && git submodule foreach --recursive \"git branch -d $1 || :\"" # delete local branch recursive
dbrf = "!git branch -D $1 || : && git submodule foreach --recursive \"git branch -D $1 || :\"" # force delete local branch recursive
drbr = "!git push --delete $1 $2 || : && git submodule foreach --recursive \"git push --delete $1 $2 || :\"" # delete remote branch recursive
stashr = "!git stash || : && git submodule foreach --recursive \"git stash\""
[push]
default = current