Thread (11 messages) flat view 11 messages, 5 authors, 2021-05-06

Re: [feature suggestion] Add 'git stash export', 'git stash import' commands to allow to backup stash externally

From: Johannes Sixt <hidden>
Date: 2021-05-06 06:44:02

Am 06.05.21 um 08:12 schrieb Yuri:
On 5/5/21 11:07 PM, Johannes Sixt wrote:
quoted
I would argue that you are doing something wrong if your stashes are
particularly valuable. If you regularly revert temporary, but precious
work, then you should commit the work and mark it with a branch tip or
tag.
No, it is work in progress. I begin to work on some modification or
update, discover some issue, and stash the update until this issue is
resolved,

It could take days, weeks, months to resolve them.
I know. But, as I said, when you turn away from your current work, which
is precious, then you should make a commit, in particular, when you can
forsee that you might not be able to come back soon.

A 'git stash' is really only intended as a short-term
make-the-worktree-temporarily-clean auxiliary storage. It is not
intended as a long-term storage. For long-term storage, use branches.
"Short term" is measured in seconds (rebase --autostash), minutes,
perhaps hours, but certainly not weeks or months.

At least, that's how I understand (and use) it.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help