4 ms·
The most important command: git reset --hard
by ryanjshaw 3y ago
The most important command:
git reset --hard
- kreeben 3y agoThis is my favorite. It allows one to easily create "service" branches based on tags where you apply to that tag a select set of commits from the development branch that you can then easily deploy to PROD without including the rest of the (perhaps not sufficiently tested) commits and without having a convoluted branching strategy.
- jwestbury 3y agoOr: git reset --soft HEAD~1