refs

Git command to save a stash without modifying working tree?

本小妞迷上赌 提交于 2019-11-29 22:07:52
I have been wanting to use a git command that saves a stash without modifying my working tree, as a lightweight backup that's safe from any git resets or whatever I might do to screw up my index. Basically the functional equivalent of "git stash save && git stash apply" except that the working copy is never touched, since this can make certain text editors/IDE's cranky. Something like this is approaching what I want, but not quite: git update-ref refs/stash `git stash create "Stash message"` This works functionally, but the issue I'm having is that no stash message shows up in "git stash list"

Git command to save a stash without modifying working tree?

会有一股神秘感。 提交于 2019-11-28 17:02:27
问题 I have been wanting to use a git command that saves a stash without modifying my working tree, as a lightweight backup that's safe from any git resets or whatever I might do to screw up my index. Basically the functional equivalent of "git stash save && git stash apply" except that the working copy is never touched, since this can make certain text editors/IDE's cranky. Something like this is approaching what I want, but not quite: git update-ref refs/stash `git stash create "Stash message"`