Now your “good stash” has ONLY staged files. This command will create a stash with ALL of your changes (staged and unstaged), but will leave the staged changes in your working directory (still in state staged). Stage all your files that you need to stash. Instead, –keep-index affects what stash does after making its special stash commits. One commit holds the state of the index, i.e., whatever you’ve staged. When you run git stash save (or plain git stash which does a save ), git makes two1 commits that are not on any branch. build, run tests, etc)īut git stash by itself stashes only the changes to the existing file the new file remains in my working tree, cluttering up my future work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |