Home  >  Q&A  >  body text

十万火急啊,git撤销了所有修改。

我要死了,我手贱撤销了所有本地提交的修改,

把我这一个多月写的博客全部弄没了,

亲们,我能撤销刚才的操作吗?

TAT 要是不可以的话,我要哭了哦

ringa_leeringa_lee2727 days ago677

reply all(6)I'll reply

  • 漂亮男人

    漂亮男人2017-05-02 09:38:09

    There must be more or less submission records for more than a month, otherwise you would not undo all local modifications. Return to the last modification: git reset --hard
    当然你也可以git reflog去查看下记录,再git reset --hard HEAD@{num}num is the submission record number

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-02 09:38:09

    If you use PhpStorm, you can view Local History, which contains all your modification records

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:38:09

    git reflog可以查看你的git的操作记录,然后通过git reset --hard HEAD@{}You can roll back to a certain version

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-02 09:38:09

    I’m curious if it hasn’t been submitted for more than a month

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:38:09

    Isn’t it said that it is recorded in behavioral units

    reply
    0
  • PHPz

    PHPz2017-05-02 09:38:09

    If it has been committed, you can go back to a certain version based on the version number.

    reply
    0
  • Cancelreply