Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are over thinking this. The message isn't saying the remote is behind. It's saying your local repository's recorded commit for 'origin/master' is. At no point in generating that message did git communicate with a remote. It simply looked into the .git directory, and returned the contents of <code>.git/refs/remotes/origin/master</code>. Try it yourself. Both of these commands should return the same thing from the top-level of the repository:</p> <pre><code>cat .git/refs/remotes/origin/master git rev-parse origin/master </code></pre> <p>The second command is simply a plumbing command for finding the 'origin/master' pointer. You could replace 'origin/master' with any branch to get the most recent commit on that branch.</p> <p>That message is telling you is that your local 'master' is ahead of the commit returned by 'git rev-parse origin/master' by 857 commits. How did this situation arise? I can't say exactly, but I'd put considerable money on you accidentally merging a different branch into 'master'. Every time I've seen this problem, it's a bad merge from user error.</p> <p>First, issue <code>git fetch origin</code> to make sure that 'origin/master' pointer is up-to-date. Then, study your <code>git log</code>. Look for something recent you don't expect. Download a <a href="http://jonas.nitro.dk/tig/">program like tig</a> or use <code>gitk</code> to get a visual graph of your commit history. It's a good bet you accidentally issued <code>git pull stable</code> while checked out on 'master'. Or something similar.</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