git stash错误:无法记录工作树状态

时间:2018-12-18 20:13:25

标签: git

我对几个文件进行了一些更改。当我想藏起来时:

 git stash

我收到如下错误消息:

fatal: f89cf6f6dae11b4fa28fea6e8ac8e272782c5995 is not a valid object
Cannot record working tree state

通过检查状态:

git status

它给了我

Your branch is ahead of 'origin' by 1 commit.
  (use "git push" to publish your local commits)
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   file1
        modified:   file2
        modified:   file3

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        fileA
        fileB
        dirA/

no changes added to commit (use "git add" and/or "git commit -a")

我知道有一种方法可以使用,但是有没有隐藏的方法?或其他方式搁置更改,然后从原点撤出。 谢谢。

0 个答案:

没有答案