3 ms·
If my repo contains modifications I don't want to commit, I git-stash those modifications. I find it to be a lot safer: at least I can run the build + testsuite
by Ace17 10y ago
If my repo contains modifications I don't want to commit, I git-stash those modifications. I find it to be a lot safer: at least I can run the build + testsuite on what I'm actually going to commit, allowing the prevention of an incomplete commit (which means in practice, I nearly always use "git commit -a", and I find the index pretty annoying).
- caf 10y agoIt'd be nice if there was a way to run a build + test cycle on the staging tree.
- glandium 10y agoYou can use git stash -k Which will create the stash with your changes (both staged and unstaged), but keep the staged ones in the staging area and in the working tree. https://github.com/git/git/blob/659889482ac63411daea38b2c3d127842ea04e4d/Documentation/git-stash.txt#L239 https://github.com/git/git/blob/659889482ac63411daea38b2c3d1...
- tomp 10y agoHaw can you partially stash a file?
- glandium 10y agogit stash -p