mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-12-22 05:41:51 +01:00
protect master & develop from gone deletion
This commit is contained in:
parent
a1b2ac27f9
commit
3f93f0b3e9
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@
|
|||
s = status -sb
|
||||
ign = ! "curl -L -s https://www.gitignore.io/api/$@"
|
||||
syn = ! "git pull --rebase && git push"
|
||||
gone = ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D"
|
||||
gone = ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | grep -v master | grep -v develop | xargs -r git branch -D"
|
||||
praise = blame
|
||||
pushf = push --force-with-lease --force-if-includes
|
||||
cobf = ! "f() { git branch -D $1 && git switch -c $1; }; f"
|
||||
|
|
Loading…
Reference in a new issue