git: aliase
This commit is contained in:
parent
4e90ca3ba3
commit
849827489d
1 changed files with 5 additions and 12 deletions
17
.gitconfig
17
.gitconfig
|
@ -8,21 +8,14 @@
|
||||||
cm = commit -m
|
cm = commit -m
|
||||||
c = checkout
|
c = checkout
|
||||||
d = diff
|
d = diff
|
||||||
ds = diff --staged
|
|
||||||
rc = rebase --continue
|
|
||||||
remote = remote -v
|
remote = remote -v
|
||||||
stagep = stage -p
|
sp = stage -p
|
||||||
last = log -1 HEAD --stat
|
last = log -1 HEAD --stat
|
||||||
|
# Delete all local branches but master and the current one, only if they are fully merged with master.
|
||||||
# Delete all local branches but master and the current one, only if they are fully merged with master.
|
delbranches = "!f(){\
|
||||||
dbra = "!f(){\
|
- git branch | grep -v "master" | grep -v ^* | xargs git branch -d;\
|
||||||
git branch | grep -v "master" | grep -v ^* | xargs git branch -d;\
|
|
||||||
}; f"
|
}; f"
|
||||||
# Delete all local branches but master and the current one.
|
dellast = reset HEAD^1
|
||||||
dbraf = "!f(){\
|
|
||||||
git branch | grep -v "master" | grep -v ^* | xargs git branch -D;\
|
|
||||||
}; f"
|
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
editor = vim
|
editor = vim
|
||||||
[help]
|
[help]
|
||||||
|
|
Loading…
Reference in a new issue