I recently split out my repository (residing in bigproj
) using git filter-branch --subdirectory-filter deep/in/my/project
. Then, I moved .git
directory to deep/in/my/project
.
Now, stash is in a strange state, where the top stash is something like:
stash@{0}: filter-branch: rewrite
I can't drop this stash, as I get this error (after git stash drop
):
refs/stash@{0}: not a valid stashed state
Now, even if I know the refid of stash@{1}, it still contains diffs for files in bigproj
hierarchy. Is it possible to re-write stash data, so that it only contains files belonging to deep/in/my/project
hierarchy?