Redefine patching workflow
In the current implementation, before we apply a patch, we reset and clean the repository. But, there are situations where, in order to for example run the specs, we need to build some files, like the node_modules
dir. In the next video, we can see an example of this situation.
We can apply the patches to the index using --cached
option and then execute checkout .
to update the index with the work tree. This will leave any non tracked file in the repository.