简体   繁体   English

Git远程头部指向分支而不是主节点

[英]Git remote head points to a branch, not master

The origin/HEAD points to my feature branch and not master . origin/HEAD指向我的特征分支,而不是master

This happened after I rolled back some commits in my local repository and pushed this change to the origin . 这发生在我回滚本地存储库中的某些提交并将此更改推到origin

I created the pull request to merge policy into master , but it does not work, just sits there. 我创建了将policy合并到master的拉取请求,但是它不起作用,只能坐在那里。

The graph looks like this: 该图如下所示: 在此处输入图片说明

Github's HEAD points to whichever branch is set to be your default. Github的HEAD指向设置为默认分支的任何分支。 You can select your default branch in your repository settings . 您可以在存储库设置中选择默认分支

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM