Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>First you should know that whether you "merge" or "rebase" <em>you will not loose your changes</em> and git will give you the chance to commit your changes &amp; resolve the conflicts (if any) and then push your modifications back to the remote repo you are pulling from.</p> <p>when you <code>git pull</code> you are telling git to do this: (pull default is to use "merge")</p> <blockquote> <p>pull the latest copy of the files from the remote, merge them with my local changes &amp; if there is a conflict that you couldn't resolve automatically then notify me so that I resolve it manually; it is straightforward.</p> </blockquote> <p>when you <code>git pull --rebase</code> you are telling git to do this:</p> <blockquote> <p>temporary remove* the changes from my local copy (my modified files), pull the latest copy from the remote, merge my changes on top of it &amp; if there is a conflict that you couldn't resolve automatically then notify me so that I resolve it manually. (<em>technically nothing is removed; it is just to make this otherwise vague logic clearer.</em>)</p> </blockquote> <p>the difference is subtle, in the second case, your changes appear to be as if you have just made these changes on the top of the most recent copy that you pulled from remote... but as you could see, in both cases your changes are definitely kept (otherwise what is the use of git!).</p> <p>Should you merge or rebase? it is long discussion &amp; there are places where one is better than the other and there are best practices for this; some useful comments are already mentioned in this page and for more info you could search online, just type "git merge vs rebase" and you will see tons of pages about it : ) </p> <p>hope this helps.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload