Re:Purposes, Concepts, Misfits, and a Redesign of Git
by gkya on Saturday October 01, 2016 @08:14AM
(#12617545)
How do you test what is in the staging area as a subset of all the changes fir consistency (i.e. can you be sure when committed and later checked out it will be a coherent stage of the project history that will test compile and run okay)?
[ Parent
| on HN ]
Re:Purposes, Concepts, Misfits, and a Redesign of Git
by morsch on Sunday October 02, 2016 @07:56AM
(#12621966)
Commit (don't push), stash remaining changed files, compile and run your tests. If anything goes wrong, either fix it and commit --amend, or reset --soft HEAD~ to return the commit to the staging area and fix from there. Unstash as required.