You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's be fair: nobody uses revert for fun, and reset is a landmine if used incorrectly. You don't need them anyway, since we have:
git checkout *hash* .
Which resets all files to the status of that commit. Combine with git clean -df to remove any file or directory that wasn't being tracked at the time. Run a new git commit and boom, back to work. Nothing (of value) was lost.
The text was updated successfully, but these errors were encountered:
Let's be fair: nobody uses
revert
for fun, andreset
is a landmine if used incorrectly. You don't need them anyway, since we have:git checkout *hash* .
Which resets all files to the status of that commit. Combine with
git clean -df
to remove any file or directory that wasn't being tracked at the time. Run a newgit commit
and boom, back to work. Nothing (of value) was lost.The text was updated successfully, but these errors were encountered: