Note that there are some explanatory texts on larger screens.

plurals
  1. POgit: Your branch is ahead by X commits
    primarykey
    data
    text
    <p>How does this actually come about?</p> <p>I am working in one repo by myself at the moment, so this is my workflow:</p> <ol> <li>Change files</li> <li>Commit</li> <li>Repeat 1-2 until satisfied</li> <li>Push to master</li> </ol> <p>Then when I do a <code>git status</code> it tells me that my branch is <em>ahead by X commits</em> (presumably the same number of commits that I have made). Is it because when you push the code it doesn't actually update your locally cached files (in the .git folders)? <code>git pull</code> seems to 'fix' this strange message, but I am still curious why it happens, maybe I am using git wrong?</p> <hr> <blockquote> <p>including what branch is printed in the message</p> </blockquote> <p>My local branch is ahead of master</p> <blockquote> <p>where do you push/pull the current branch</p> </blockquote> <p>I am pushing to GitHub and pulling to whichever computer I happen to be working on at that point in time, my local copy is always fully up to date as I am the only one working on it.</p> <blockquote> <p>it doesn't actually check the remote repo</p> </blockquote> <p>That is what I thought, I figured that I would make sure my understanding of it was correct.</p> <blockquote> <p>are you passing some extra arguments to it?</p> </blockquote> <p>Not ones that I can see, maybe there is some funny config going on on my end?</p> <pre><code>$ git status # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # nothing to commit (working directory clean) </code></pre>
    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.
 

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