Hacker News new | past | comments | ask | show | jobs | submit login

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)?



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: