News for hackers. Stuff that matters.
Re:What’s wrong with Git? A conceptual design analysis by Ace17 on Tuesday October 25, 2016 @01:23AM (#12785509)
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).
Re:What’s wrong with Git? A conceptual design analysis by tomp on Tuesday October 25, 2016 @04:21AM (#12786138)
Haw can you partially stash a file?
Re:What’s wrong with Git? A conceptual design analysis by glandium on Tuesday October 25, 2016 @04:46AM (#12786274)
git stash -p
Re:What’s wrong with Git? A conceptual design analysis by caf on Tuesday October 25, 2016 @02:20AM (#12785724)
It'd be nice if there was a way to run a build + test cycle on the staging tree.
Re:What’s wrong with Git? A conceptual design analysis by glandium on Tuesday October 25, 2016 @04:53AM (#12786306)
You 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/659889482ac63411daea38b2c3d1...