What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-20 04:25:13
git push to all remotes
#To push all branches to all remotes: git remote | xargs -L1 git push --all #Or if you want to push a specific branch to all remotes: #Replace master with the branch you want to push. git remote | xargs -L1 -I R git push R master #(Bonus) To make a git ... Add solution -
Other 2021-11-03 08:08:16
remove all branches deleted on remote
# set this alias in git.config git config --global alias.gone "! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '\$2 == \"[gone]\" {print \$1}' | xargs -r git branch -D" # then run git gone Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5