Re: moving a remote branch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 17, 2010 at 12:35 PM, Thomas Anderson <zelnaga@xxxxxxxxx> wrote:
> git branch -m origin/zelnaga/featurea origin/zelnaga/featureb doesn't
> seem to be working for me.  Instead, I get this error:l
>
> error: refname refs/heads/origin/zelnaga/featurea
> fatal: Branch rename failed
>
> Any ideas?

The error  message could be improved here.

The reason you get the error is because you were asking git
to rename a "remote" branch, which it refuses to do because,
well, it's a remote branch, and for all practical purposes git
won't allow you to modify any "remote" stuff as they are all
read-only from our point of view.

If you run "git remote -v" you'll most likely see that "origin"
is listed in the output which means that your "origin/zelnaga/featurea"
is a remote branch because its name begin with "origin/".

Hope this helps.

nazri.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]