A
A
Andrey PINEAPPLE2016-08-05 17:16:30
git
Andrey PINEAPPLE, 2016-08-05 17:16:30

How to remove redundant commits?

I have a commit that needs to be pushed to GitHub. But before this commit, there were still a bunch of local commits that I don't want to see in the history on GitHub. How to be?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
aol-nnov, 2016-08-05
@AndreyHudz90

delete edits or log entries?
in any case, an interactive rebase (git rebase -i) and it is already possible to squash, delete or edit a specific commit message
and how you comb the history, only after that publish it on github

1
123qwe, 2016-08-05
@Yonghwa

I'm too lazy to translate, dude. Here everything is detailed and everything works.
stackoverflow.com/questions/1338728/delete-commits...

I
ItsGreyDay, 2016-08-05
@ItsGreyDay

If you only need one commit, then use the cherrypick function

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question