Categories
How do I remove the latest commit in git?
How exactly do I remove a commit so that it disappears from the repository altogether? now I am in it.
Answer the question
In order to leave comments, you need to log in
Return to normal "git checkout master" Delete the last (end) commit "git reset --hard HEAD~1" Delete in the middle "git rebase -i" and then read the manuals on what to write there. Well, respectively, after the manipulation of "git push -f"
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question