git_basics icon indicating copy to clipboard operation
git_basics copied to clipboard

Addition of command to revert the last commit

Open mihikagaonkar opened this issue 4 years ago • 0 comments

You could add the following commands

  • git reset --soft HEAD~1 - used to revert the last commit and retain the changes when changes aren't pushed
  • git reset --hard HEAD~1 - used to revert the last commit and discard the changes when changes aren't pushed

mihikagaonkar avatar Jun 19 '21 17:06 mihikagaonkar