<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/2/12 Leandro Lucarella <span dir="ltr"><<a href="mailto:luca@llucax.com.ar" target="_blank">luca@llucax.com.ar</a>></span><br><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Walter Bright, el 11 de February a las 12:21 me escribiste:<br>
<div class="im">><br>
> On 2/11/2013 1:59 AM, kenji hara wrote:<br>
> ><br>
> >--- commang example<br>
> ># fetch all remote branches<br>
> >git fetch upstream<br>
><br>
> How is that different from "git remote update" ?<br>
<br>
</div>git fetch upstream will only fetch new stuff from the upstream remote<br>
repository and will set the FETCH_HEAD reference.<br>
<br>
git remove update will fetch new stuff from all the remote repositories<br>
without touching FETCH_HEAD.</blockquote><div><br></div><div>Because I always control remotes origin and upstream separately.<br></div><div>You can use "git remote update" instead.</div><div> </div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">
> ># Forcely re-tagging<br>
> >git tag -f v2.062-b1 upstream/staging~0<br>
><br>
> What is the ~0 for?<br>
<br>
</div>It has no effect, I don't know why he used it. REF~N is used to specify<br>
the Nth commit before the reference REF (for example HEAD~3 is 3 commits<br>
before HEAD, and is the same as specifying HEAD^^^). So REF~0 is the<br>
same as REF.</blockquote><div><br></div><div>Yes, it is no effect, but a tag sticks always to a commit, not branch.</div><div>The form "REF~0" definitely represents a commit object, even if REF refers a branch.<br>
</div>I used it in order to make the command more descriptive.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Kenji Hara</div></div></div>