issues
search
HarshKapadia2
/
git_basics
A PWA and TWA for Git and GitHub concepts and commands.
https://harshkapadia2.github.io/git_basics
Creative Commons Attribution Share Alike 4.0 International
105
stars
20
forks
source link
Addition of command to revert the last commit
#75
Open
mihikagaonkar
opened
3 years ago
mihikagaonkar
commented
3 years ago
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
You could add the following commands