D
D
Demigodd2019-11-05 15:14:52
git
Demigodd, 2019-11-05 15:14:52

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

1 answer(s)
L
Lynn "Coffee Man", 2019-11-05
@Demigodd

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 question

Ask a Question

731 491 924 answers to any question