DEV Community

Discussion on: Must know git commands for a developer

Collapse
 
willworth profile image
Will Worth

nevermind = !git reset --hard HEAD && git clean -d -f

removes all new files added and /or changed since the clean situation, and checks out fresh. If only it worked outside git...