Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<blockquote> <p><code>1.</code> Find out where Git thinks 'origin/master' is using <a href="http://schacon.github.com/git/git-remote.html#_commands" rel="noreferrer"><code>git-remote</code></a></p> </blockquote> <pre><code>git remote show origin </code></pre> <p>..which will return something like..</p> <pre><code>* remote origin URL: me@remote.example.com:~/something.git Remote branch merged with 'git pull' while on branch master master Tracked remote branch master </code></pre> <p>A remote is basically a link to a remote repository. When you do..</p> <pre><code>git remote add unfuddle me@unfuddle.com/myrepo.git git push unfuddle </code></pre> <p>..git will push changes to that address you added. It's like a bookmark, for remote repositories.</p> <p>When you run <code>git status</code>, it checks if the remote is missing commits (compared to your local repository), and if so, by how many commits. If you push all your changes to "origin", both will be in sync, so you wont get that message.</p> <blockquote> <p><code>2.</code> If it's somewhere else, how do I turn my laptop into the 'origin/master'?</p> </blockquote> <p>There is no point in doing this. Say "origin" is renamed to "laptop" - you never want to do <code>git push laptop</code> from your laptop.</p> <p>If you want to remove the origin remote, you do..</p> <pre><code>git remote rm origin </code></pre> <p>This wont delete anything (in terms of file-content/revisions-history). This will stop the "your branch is ahead by.." message, as it will no longer compare your repository with the remote (because it's gone!)</p> <p>One thing to remember is that there is nothing special about <code>origin</code>, it's just a default name git uses.</p> <p>Git does use <code>origin</code> by default when you do things like <code>git push</code> or <code>git pull</code>. So, if you have a remote you use a lot (Unfuddle, in your case), I would recommend adding unfuddle as "origin":</p> <pre><code>git remote rm origin git remote add origin git@subdomain.unfuddle.com:subdomain/abbreviation.git </code></pre> <p>or do the above in one command using set-url:</p> <pre><code>git remote set-url origin git@subdomain.unfuddle.com:subdomain/abbreviation.git </code></pre> <p>Then you can simply do <code>git push</code> or <code>git pull</code> to update, instead of <code>git push unfuddle master</code></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