Back

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

I started using git sometime back and do not fully understand the intricacies. My basic question here is to find out the difference between a git pull and git pull -- rebase, since adding the --rebase option does not seem to do something very different: just does a pull.

Please help me with understanding the difference.

1 Answer

0 votes
by (50.2k points)

To know the difference between git pull and git pull rebase then see the below which is simple and easy to understand. 

git pull = git fetch + git merge against tracking upstream branch

git pull --rebase = git fetch + git-rebase against tracking upstream branch

For more details: https://git-scm.com/docs/git-pull#Documentation/git-pull.txt---rebasefalsetruemergespreserveinteractive

Browse Categories

...