Remove Local Commit Git
Remove Local Commit Git . Rename local git folder to my_broken_local_repo. Git reset soft alters the head commit, while git reset mixed unstages a file. 10 Common Git Commands Everyone Should Know TestProject from blog.testproject.io If you want to go back to a specific commit, find its commit id using git log command, and then use git reset as follows. Before executing these commands, we should have a second look because it will delete all our working directory changes. $ git reset head~ unstaged changes after reset: