[英]Reset master branch to feature branch
We have a master
branch and feature branch called feature/google-analytics
. 我们有一个master
分支和一个feature分支,称为feature/google-analytics
。
The feature branch was created from the master
branch. 功能分支是从master
分支创建的。 There are so many hotfixes applied in the master
branch. 在master
分支中应用了许多修补程序。
But now when I try to rebase with master branch, it shows many conflicts. 但是现在当我尝试使用master分支进行基础调整时,它显示出许多冲突。 so I aborted the git rebase. 所以我放弃了git rebase。
Instead, apply the hotfixes manually to the feature branch. 而是,将修补程序手动应用于功能分支。
Now I want to reset master branch same as feature branch. 现在,我想重置与功能分支相同的master分支。
How to do that? 怎么做?
为了将一个分支重置为另一个远程分支,您可以简单地使用
git reset --hard origin/feature/google-analytics
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.