Back

Explore Courses Blog Tutorials Interview Questions
+4 votes
2 views
in DevOps and Agile by (29.3k points)
edited by

I know of some people who use git pull --rebase by default and others who insist never to use it. I believe I understand the difference between merging and rebasing, but I'm trying to put this in the context of git pull. Is it just about not wanting to see lots of merge commit messages, or are there other issues?

1 Answer

+4 votes
by (50.2k points)
edited by

You can use 

git pull --rebase

When your changes don’t deserve a separate branch.

 In Git, you're encouraged to branch and merge. Your local branch and remote branch are, actually, different branches, and git pull is about merging them. 

Regarding git branches, here we have a tutorial which helps you please go through the link:

Related questions

Browse Categories

...