3 ms·
Related, I'm sure many people here know this, but it's super useful for those that don't. To undo any uncommitted work and go back to the original state of the
by jds375 12y ago
Related, I'm sure many people here know this, but it's super useful for those that don't. To undo any uncommitted work and go back to the original state of the branch use: 'git checkout .'
- syncsynchalt 12y agoI like doing a 'git stash' or 'git stash save deleteme' instead. That way if I realize a moment later that I needed anything, it's still available (if I haven't done a 'git stash drop' yet).