Fixing Mistakes
1.STAGED CHANGES
COMMAND:
git reset file name
2.COMMITTED CHANGES (FOR A SINGLE COMMIT)
COMMAND:
git reset HEAD~1
COMMAND :
git reset commi hash
git reset --hard commit hash (it reoves all the commits after the mentioned commit hash)
1.STAGED CHANGES
COMMAND:
git reset file name
2.COMMITTED CHANGES (FOR A SINGLE COMMIT)
COMMAND:
git reset HEAD~1
COMMAND :
git reset commi hash
git reset --hard commit hash (it reoves all the commits after the mentioned commit hash)
Comments
Post a Comment