我最近bigproj
使用git filter-branch --subdirectory-filter deep/in/my/project
. 然后,我将.git
目录移动到deep/in/my/project
.
现在,stash 处于一种奇怪的状态,顶部的 stash 类似于:
stash@{0}: filter-branch: rewrite
我无法删除此存储,因为我收到此错误(之后git stash drop
):
refs/stash@{0}: not a valid stashed state
现在,即使我知道 stash@{1} 的 refid,它仍然包含bigproj
层次结构中文件的差异。是否可以重写存储数据,使其仅包含属于deep/in/my/project
层次结构的文件?