Does GIT STASH persist even after turning off the computer?

I read about using git stash to keep work in a specific branch when you need to work on another, but my question is that these saved changes remain saved only for a specific session or will be saved until they are saved (even after restarting the computer) and will be restored later?

The root of the problem: I have a computer with me at work that I am developing, and which cannot access the Internet. This way I cannot remotely delete changes in git. I need to save them temporarily, turn off the computer and press them when I get home. Is it possible?

+4
source share
1 answer

Yes, the cover is saved on the disk and thus the reboot is saved.

gitdoes not store any content in memory (or in an alternative fragile state, for example, unrelated files) between command calls; this will require a demon outside the process or another component that is not currently included - thus, significant additional complexity without significant gains.


, , , . push ( --force) . . dev , , , , .

+4

All Articles