DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

GIT Merge vs Rebase - How and When?

4 years ago medium.com
GIT Merge vs Rebase - How and When?

Summary: This is a summary of an article originally published by the source. Read the full original article here →

Both GIT commands are used for the copy of onebranch into anotherbranch. But both used different approaches.

Rebase commit logs If you notice, In the merge has an additional commit “Merge branch master -> feature”.

Because of that, Since rebase is rewriting the commit, we can modify the commit(s) list while rebasing which you can not do in the merge.

It is good to use rebase whenever you want the streamline the history and flexibility to notify the history such as feature branch.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com