【问题标题】:How to secretly hide a git commit [duplicate]如何秘密隐藏 git commit [重复]
【发布时间】:2017-04-18 02:24:10
【问题描述】:

是否有撤消/删除 git push 并隐藏提交消息中的内容?我知道如何执行 git revert HEAD,但仍然显示之前推送的代码,有没有更好的方法来解决这个问题?

【问题讨论】:

    标签: git github


    【解决方案1】:

    在您喜欢的位置查找特定提交的哈希字符串,例如18f747d。 使用

    git reset --hard 18f747d
    git push --force
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-02-10
      • 1970-01-01
      • 2017-01-08
      • 2021-03-15
      • 2013-02-28
      • 2017-08-01
      相关资源
      最近更新 更多