-1

Let's come to my problem .

what is the different between this 2 command , i am confused about that .

1. git pull origin master
2. git pull --rebase origin master

here what is the job of "--rebase" . Please let me clear !

Pull everything from the remote master in the local develop and merge it? Pull everything in the local master branch and merge it?

1 Answers1

0

Snippet from git-pull(1) man page:

   -r, --rebase[=false|true|preserve]
       When true, rebase the current branch on top of the upstream branch
       after fetching. If there is a remote-tracking branch corresponding
       to the upstream branch and the upstream branch was rebased since
       last fetched, the rebase uses that information to avoid rebasing
       non-local changes.
       ... continued ...
Jameson
  • 6,400
  • 6
  • 32
  • 53