when we want to revert back to our code back we may use git log and git revert <log_id> but it will create a another commit.
rather we can use git log --oneline to show all the logs in one line then git checkout <log_id> it will go to that snapshot! of id.
when we want to revert back to our code back we may use
git logandgit revert <log_id>but it will create a another commit.rather we can use
git log --onelineto show all the logs in one line thengit checkout <log_id>it will go to that snapshot! of id.