Git stashes in colocated jj/git repo #6394
-
Hi, I've been using jj in a pre-existing git repo (by running I tried running I created a test git repo, made a stash, then ran Have my stashes perhaps been garbage collected by git? (I read that two weeks is the default amount of time before git garbage collection kicks in.) Are there other ways to try to recover stashes? Should users expect their git stashes to still be available, indefinitely, after colocating a jj repo with a git repo? (I should have made a back up copy of my repo before using jj and/or used branches instead of stashes.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I don't think we expect jj to have any impact on Git stashes.
If you want to run a test GC, you could run |
Beta Was this translation helpful? Give feedback.
I don't think we expect jj to have any impact on Git stashes.
refs/stash
(docs), and therefore shouldn't be eligible for garbage collection in any event (regardless of the two-week limit).If you want to run a test GC, you could run
git gc --prune=now
orjj util gc --expire=now
.