Revert those changes in Git

Revert those changes in Git

Continuing on the theme of Git commands you should know. Today I am looking at using git to revert that last commit.

Occasionally you’ll want to undo the changes you’ve just made. And there are various ways to do that either locally or remotely depending on what you need, but you do have to be careful when doing that and avoid unwanted deletions.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store