Fixing Mistakes

 1.STAGED CHANGES

COMMAND:

git reset file name



2.COMMITTED CHANGES (FOR A SINGLE COMMIT)

COMMAND:

git reset HEAD~1




3.COMMITTED CHANGES (FOR MANY COMMITS)

COMMAND :

git reset commi hash

git reset --hard commit hash (it reoves all the commits after the mentioned commit hash)



Comments

Popular posts from this blog

Branch Commands