Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squash all commit on feature branch #12

Open
byhbt opened this issue Jul 15, 2020 · 0 comments
Open

Squash all commit on feature branch #12

byhbt opened this issue Jul 15, 2020 · 0 comments
Labels
Git Source code management

Comments

@byhbt
Copy link
Owner

byhbt commented Jul 15, 2020

Problem:

master > develop > feature_a > feature_b > feature_c

feature_b branch is based on feature_a, and feature_c is based on feature_b.

It sounds a bit strange but in real-life case, there are some situations like that.

If the feature_a has 20 commits, then when feature_b rebase, it has to go through 20 commits :( quite nightmare.

Solution:

Squash all commit in feature_a to 1 commit.
But if the feature_b branch before feature_a squash, please rebase again make sure the commit is consistent between 2 branches.

Lesson:

@byhbt byhbt added the Git Source code management label Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Git Source code management
Projects
None yet
Development

No branches or pull requests

1 participant