![]() ![]() This command will completely remove all the changes. In order to uncommit the last 3 commits and also remove the changes, we can run the command: git reset -hard HEAD~3. Then we can see the changes made in the last 3 commits and then update it manually and commit it finally. To uncommit the last 3 commits without losing the changes, we first run git reset HEAD~3. To go or checkout to 1 commit before the latest commit, we use git checkout HEAD~1 In other words, it can have any number of heads.
0 Comments
Leave a Reply. |