We face situations daily where we have to choose between pull and rebase to update the local code with the origin. We will see the difference using an example.

We add m1 to it and commit it. Later add m2 and commit it and finally add m3 and commit it. Now we checkout feature branch from master and add new feature f1 and commit it.

Related Articles