如何撤消git推动 - 来自ME50创建的存储库的全部?

发布于 2025-01-22 08:47:48 字数 316 浏览 4 评论 0原文

我正在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瀟灑尐姊 2025-01-29 08:47:48

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文