D
D
Dmitry Morozov2018-11-02 18:57:19
git
Dmitry Morozov, 2018-11-02 18:57:19

How to squash commits on func. blocks within a branch?

The bottom line is, there is a branch, it has 400 commits in 5 main blocks (main, listing, product card, etc.). Mixed commits like:
- main
- main edits
- listing
- card
- more main
edits - card
edits - listing edits
- cart
Etc. The task is to break everything into 5 commits by main blocks. How to do it? thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aol-nnov, 2018-11-02
@aol-nnov

Interactive rebase. But why?!

J
jcmvbkbc, 2018-11-02
@jcmvbkbc

The task is to crush everything in 5 commits on the main blocks. How to do it?

In the general case, without losing performance between commits (if any) - no way.
If this is not important, then you can do it git resetat the beginning of the branch, and then manually add the necessary changes and commit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question