简体   繁体   English

从分支中删除/删除远程提交

[英]Drop/delete remote commits from branch

After rebasing and dropping/using fixup on a few commits from my branch locally, I noticed that there are 4 commits on the pull request that I can't find locally.在对本地分支机构的一些提交进行变基和删除/使用修复后,我注意到拉取请求中有 4 个提交我在本地找不到。 How do I get rid of those?我该如何摆脱那些?

A force push (aka git push --force ) should clean them up.强制推送(又名git push --force )应该清理它们。

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

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