Home How to merge multi commits to one commit
Post
Cancel

How to merge multi commits to one commit

Merge all diff commits in another branch

Firstly, we should start working new feature/bugfix on a new branch and commit as much as we want.

After finished coding, we can merge them to master branch with one combination commit using merge --squash command

1
2
# switch to master branch
git merge --squash <feature branch>
This post is licensed under CC BY 4.0 by the author.

How to get saved wifi password in windows?

"On a Newspaper" or "In a Newspaper"?