【问题标题】:How to undo pushed revert in git?如何撤消 git 中的推送还原?
【发布时间】:2013-09-28 05:42:34
【问题描述】:

我已还原一些代码并推送到远程 git 存储库。即使将更改推送到远程存储库,我如何才能“取消还原”更改。

请在下面找到我所做的:

git revert commit_id    
git push origin branch_name

现在我可以撤消还原了吗?

【问题讨论】:

标签: git


【解决方案1】:

您的更改是pushed。不要改变别人的历史!

git checkout branch_name
git revert revert_id
git push origin branch_name

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-05-04
    • 2014-05-06
    • 2022-05-31
    • 1970-01-01
    • 2022-12-17
    • 2016-10-02
    • 2012-11-08
    • 2011-08-22
    相关资源
    最近更新 更多