Able to push to all git remotes with the one command?

前端 未结 6 1493
广开言路
广开言路 2020-11-30 16:10

Instead of doing:

git push origin --all && git push nodester --all && git push duostack --all

Is there a way to do that wit

6条回答
  •  Happy的楠姐
    2020-11-30 16:34

    You can utilize git hooks - especially pre-push: add non-origin pushes to .git/hooks/pre-push.

提交回复
热议问题