简体   繁体   English

如何撤消已经推送到源的git reword?

[英]How do I undo a git reword that's already been pushed to origin?

I did a squash and accidentally reworded someone else's commit, which took place before I made my fork. 我做了一个壁球,不小心改写了别人的承诺,那是在我制造叉子之前发生的。 Now as a result my pull request shows a merge conflict and as 1 commit behind. 现在,结果是我的拉取请求显示了合并冲突,并在后面提交了1次。 I want to undo the reword done to that commit, but I dont know how to do that. 我想撤消对该提交所做的更改,但是我不知道该怎么做。 Here's the pull request: https://github.com/satnogs/satnogs-client-ansible/pull/1 这是请求请求: https : //github.com/satnogs/satnogs-client-ansible/pull/1

You can update your upstream and rebase your work: 您可以更新您的upstreamrebase你的工作:
git rebase upstream/<branch> (considering your are on your working branch). git rebase upstream/<branch> (考虑到您在工作分支中)。 It will reapply all your commits on top of new upstream/<branch> . 它将在新的upstream/<branch>之上重新应用所有提交。

Then do force push to your origin . 然后用push到你的origin

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

相关问题 如何从尚未推送到git的原始提交中删除文件更改? - How do I remove a file change from a commit that has not been pushed to origin in git? 如何撤消尚未推送的提交? - How do I undo commits that haven't been pushed yet? 如何撤消已被拉/合并的git rebase? - How can I undo a git rebase that's already been pulled/merged? 在git上,如何忽略已推送到原始仓库的特定文件夹,将更改推送到部署的仓库? - On git, how would I push changes to my deployed repo ignoring a specific folder that has already been pushed to my origin repo? 还原已经推送的git pull - Reverting a git pull that's already been pushed Git:如何删除已经提交,推送并合并到master的分支? - Git: How do I remove a branch that has already been committed, pushed, and merged into master? 在 Git 中撤消已推送到远程存储库的特定提交 - Undo a particular commit in Git that's been pushed to remote repos 我如何改写第一个 git commit 消息? - How do I reword the very first git commit message? 撤消不良合并已被推至原点 - Undo bad merge already pushed to origin 在git中,如何撤消本地删除未推送的注释标签? - In git, how can I undo the local deletion of an annotated tag that has not been pushed?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM