what is the difference between
- git pull --rebase
- git rebase origin/nameOfBranch
and when must use one over the other
what is the difference between
and when must use one over the other
The difference is that git pull
does two things:
fetch
andmerge
(or rebase
, since you give it the --rebase
argument)On the other hand, git rebase
does only the rebase, not the fetch.