如何撤消git推动 - 来自ME50创建的存储库的全部?
我正在GitHub上使用ME50 bot提交我的CS50课程项目,并且在为下一个项目开始一个新分支时,我使用了此命令:
git push origin --all
这最终导致我在活动feed上失去了所有先前的投入,并设置了新的项目回购默认。我的其他项目仍然在Github上列出了他们的提交,但是活动供稿不再将其接收。我该怎么办来解决这个问题?是更改默认分支的问题吗?如果是这样,我该如何使用Repo ME50机器人创建?
这是一个非常小的案例,因为我还没有在网上看到任何解决方案,我尝试在新的存储库中重置〜1个问题,但显然,这是不起作用的。
I am using me50 bot on Github to submit my CS50 course projects and in starting a new branch for my next project, I used this command:
git push origin --all
This ended up causing me to lose all prior commits on my activity feed and the new project repo is set to default. My other projects still have their commits listed on Github but the activity feed no longer picks them up. What can I do to fix this? Is it a matter of changing the default branch? and if so how can I do that with a repo me50 bot created?
This is quite a niche case as I have not seen any solutions online, I tried resetting HEAD~1 on the new repo but obviously, that didn't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GitHub活动feed仅遵循默认分支。 ME50将“默认”分支切换到最新的存储库。因此,推送命令没有破坏任何东西。
Github activity feed only follows commits to the default branch. And me50 switches the "default" branch to the most recent repo. So the push command didn't break anything.