how can i push to two repo at the same time
This question already has an answer here:
Since there are no built in "post-push" hooks for git, an easy way to accomplish that would be to designate a certain branch as 'production' branch (typically master branch is used for that purpose) and then create a deployment script (say git-deploy.sh
) which would pull the most recent code from master branch on your server. Then, you could create a git alias like this:
git config alias.xpush !git push origin master && git-deploy.sh
which you can then run it by using
git xpush
链接地址: http://www.djcxy.com/p/49770.html
上一篇: 如何使本地回购到本地远程?
下一篇: 我怎么能在同一时间推到两个回购