git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: moving a remote branch?

From
Nazri Ramliy <ayiehere@gmail.com>
Date
Jun 17, 2010, 06:19 UTC
Message-ID
<AANLkTimTSU7Db7cMlC0ZxQ47IoBUr4Ee4G-GfgDoYLmK@mail.gmail.com>
In-Reply-To
<AANLkTikA5jGl1LiU2sNTN1NP_syTfPAeLF7sS6dBozyN@mail.gmail.com>
On Thu, Jun 17, 2010 at 12:35 PM, Thomas Anderson <zelnaga@gmail.com> wrote:
Show 7 quoted lines
> 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.
Previous: Thomas AndersonNext: Peter Kjellerstedt
Message 2 of 8 in “moving a remote branch?”
  1. Thomas AndersonJun 17, 2010
  2. Nazri RamliyJun 17, 2010
  3. Peter KjellerstedtJun 17, 2010
  4. Nazri RamliyJun 17, 2010
  5. Peter KjellerstedtJun 17, 2010
  6. Nazri RamliyJun 17, 2010
  7. Thomas AndersonJun 17, 2010
  8. Peter KjellerstedtJun 17, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.