📜  git push 到所有遥控器 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:14.711000             🧑  作者: Mango

代码示例1
#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 alias for the command:
git config --global alias.pushall '!git remote | xargs -L1 git push --all'