[英]How to replace Master Branch files with Develop Branch on remote?
I have an out dated Master Branch contains committed files with unresolved conflicts, and i have a Develop Branch that contains the latest code with no problem. 我有一个过时的主分支包含具有未解决冲突的已提交文件,并且我有一个包含最新代码的开发分支没有问题。
How can I replace my master branch files with files in develop branch? 如何用develop分支中的文件替换主分支文件?
Please advise... 请指教...
Assuming you want to just wipe out what you have on master
and make it be identical to develop
... 假设你想要消灭你master
并使它与develop
相同......
reset
your master
branch to point to the same commit as develop
: reset
您的master
分支以指向与develop
相同的提交:
git checkout master
git reset --hard develop
git push -f origin master
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.