ubsuny / 23-Homework1G3

Homework 1 Repository Group 3
0 stars 7 forks source link

Undo a commit #57

Closed sharmistharanit closed 11 months ago

sharmistharanit commented 11 months ago

How do I undo a commit?

pratibha77118 commented 11 months ago

@sharmistharanit I think you cannot undo a commit as it will still be there in your history but can make another commit about the same file by going through it and make compare and pull request before merging it. Also we can use command git reset --hardHEAD^.