HarshKapadia2 / HarshKapadia2/git_basics

Addition of command to revert the last commit

Open
#75 0 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.