If I want to push the contents from a remote:master to the same remote but a different branch, how can I do this?
With git push remote.git master:mybranch
I can push the local repo into the second branch
But what I'd like is push not from the local but from the remote
So remote:master -> remote:branch
Something like this?
git push remote.git 'refs/remotes/master:refs/remotes/mybranch'
git push remote.git 'refs/heads/master:refs/heads/mybranch'
您必须将实际的 master 拉入本地分支(您可以将其添加到新分支),然后推送到远程。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.