-
Run the command “git log --oneline”. You can see all the commits being done previously.
-
To undo the commit, copy the #no. of that commit and run the command “git reset <commit #no.>”.
-
Run the command “git status”. You can see that you have gone back to that commit.
-
Run the command “git log --oneline” once again. You can see the changes i.e. you have gone back in time.
- Neha's blog
- Log in or register to post comments
Recent comments