【问题标题】:What is fast and safe way to revert code from git repo [duplicate]什么是从 git repo 恢复代码的快速安全的方法 [重复]
【发布时间】:2022-01-18 10:13:51
【问题描述】:

我错误地将更改推送到 git repo..现在我想恢复它。

那么什么是快速安全的方法呢。

我知道要扭转它,但我想知道简单、快速和安全的方法。

谢谢

【问题讨论】:

    标签: c# asp.net .net git github


    【解决方案1】:

    你可以用来保持你在舞台区域的变化

    混合重置

    git reset --mixed [commit id you want to reset here]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-08
      • 1970-01-01
      • 2020-09-30
      • 2018-10-09
      相关资源
      最近更新 更多