Answer the question
In order to leave comments, you need to log in
How to properly delete a commit in a branch and push a new one?
I know there are many instructions scattered on the net, but these methods are different from each other..
I would like to find some unique, professional method, without harm to myself and the team.
Need to know
1) How to remove the latest commit from a branch, make a new one, and push.
2) How to remove NOT the latest commit from a branch, make a new one, and push.
3) How to rename the commit, and the author himself, and push.
In general, we need a Guru Gita who knows all the ins and outs, who knows what and how to do, please share your experience.
Answer the question
In order to leave comments, you need to log in
In general, the questions are too abstract. I can give the same abstract answer:
1. git reset + git push
2. git rebase + git push
3. git commit + git push
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question