Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have experienced exactly what you see. I can't find the proper explanation on git-scm.com but I believe it to be something like this:</p> <ol> <li>I clone a repo from origin, lets say origin has master and I have master now in my local repo</li> <li>now origin and your repo have a reference to the last commit. This reference is the master branch AND the reference is the same in your local repo and on origin</li> <li>Let's say someone (other then you) pushes new commits to origin master</li> <li>you do <code>git pull origin master</code></li> <li>now you do <code>git status</code> and you will see that your branch is ahead to origin/master even tough you have no new commits in your local repo and nothing to push!! (in this example, you did not commit anything new locally since step 1 (the cloning))</li> </ol> <p>==> I fix this by doing a <code>git pull origin</code> when I'm on master. </p> <p>A <code>git pull origin master</code> will pull all new commits from a branch on origin to your local branch. </p> <p>A <code>git pull origin</code> will also re-set your reference to master equal to the commit where master is referenced on origin!! (When this didn't happen, the git-bash will just think that you are alot of commits ahead! because in the commit-tree there are alot of commits made after the commit where your master-reference is!)</p> <p>Does this make any sence to you? It does to me :)</p> <p>Also please feel free to support my toughts a bit with hard evidence/documentation :)</p>
    singulars
    1. This table or related slice is empty.
    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