Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Essentially <code>rebase</code> temporarily removes your commits, stores them as patches, gets the head of the master and then reapplies your patches. </p> <p>Here is a website that explains what git rebase is succulently - <a href="http://book.git-scm.com/4_rebasing.html" rel="nofollow noreferrer">http://book.git-scm.com/4_rebasing.html</a> . </p> <p><strong>BE CAREFUL:</strong> <em>Here be dragons!</em> <img src="https://i.stack.imgur.com/xFx9U.jpg" alt="http://vectorya.com/freevectors/vector-cartoons/dragon-baby-green/"> </p> <p>If you are absolutely certain there will be no issues, you can ignore the error and perform <code>git push --force</code>. <strong>HOWEVER, you risk breaking the central repository</strong>. Not advised by Github - <a href="http://help.github.com/remotes/" rel="nofollow noreferrer">http://help.github.com/remotes/</a> Look for the section <code>Dealing with “non-fast-forward” errors</code></p> <p>Or to try and resolve first pull and then push - <code>git pull origin master</code> then <code>git push origin master</code></p> <p>One option would be to use <code>git merge</code> instead of <code>rebase</code>. <code>git pull origin master</code> to get the master up to date. There have been debates in the community on rebase vs merge and each have their pros and cons.</p> <p>To prevent duplicating the content, the articles covering the same topic - <a href="http://softwareswirl.blogspot.com/2009/04/truce-in-merge-vs-rebase-war.html" rel="nofollow noreferrer">http://softwareswirl.blogspot.com/2009/04/truce-in-merge-vs-rebase-war.html</a>, <a href="https://stackoverflow.com/questions/457927/git-workflow-and-rebase-vs-merge-questions">Git workflow and rebase vs merge questions</a> and <a href="http://www.randyfay.com/node/89" rel="nofollow noreferrer">http://www.randyfay.com/node/89</a>. </p> <p>Examples of merging into master:</p> <ul> <li><code>git checkout master</code> and then <code>git merge mybranch</code></li> </ul> <p>To merge master into mybranch and then merge into master</p> <ul> <li><code>git checkout mybranch</code> and then <code>git merge master</code></li> <li><code>git checkout master</code> and then <code>git merge mybranch</code></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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