Posts by Iuri Matos • 1 point
1 post
-
0
votes6
answers98339
viewsA: How do I undo the last commit in Git?
If your last commit is your first commit (initial commit) execute the command git update-ref -d HEAD to retrieve changes from your working tree and execute a new commit…