3 ms·
If that's your goal, it might be better to just never deploy from a checked out repository and instead always make a new copy of the code (git clone, git archiv
by wereHamster 8y ago
If that's your goal, it might be better to just never deploy from a checked out repository and instead always make a new copy of the code (git clone, git archive, download the tarball from github etc). As in, make the deploy script do that for you, so you never even get into a situation where you could have a dirty working tree in the first place.
- brazzledazzle 8y agoYou could take it a step further and setup a dead simple server that does it for you and tracks the results in a central place for the whole team. With a manual trigger if you so desired.
- wahnfrieden 8y agoCircleCI etc are decent at this.