-2

I am new in gerrit and i had a doubt that why we not use the simple pull like Git in gerrit and instead, we use git pull --rebase?

Secondly (different question), can you please state me why we need to give a special target reference while pushing the changes in gerrit?

Udit Panchal
  • 7
  • 1
  • 5
  • 1
    What makes you think `--rebase` is a "special target reference"? Rebasing isn't about target references... it's about whether to merge the incoming changes with yours, or whether to reapply your changes on top of the incoming changes. – Jon Skeet Sep 15 '15 at 19:11
  • Do see the edited question – Udit Panchal Sep 15 '15 at 19:13
  • 1
    Only ask one question per post, please... now, do you understand what `git pull --rebase` does? (It's not like it's gerrit-specific...) – Jon Skeet Sep 15 '15 at 19:14

1 Answers1

0

To answer your second question: there is an excellent answer on stackoverflow already: https://stackoverflow.com/a/10461674

Community
  • 1
  • 1
uwolfer
  • 4,356
  • 1
  • 25
  • 40