HarshKapadia2 / HarshKapadia2/git_basics
Addition of command to revert the last commit
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 106
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.