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

Renaming remote branch

From
MMaaartin <grajcar1@seznam.cz>
Date
Apr 15, 2011, 23:12 UTC
Message-ID
<ioajc1$rc$1@dough.gmane.org>

I'm tracking a couple of other people's projects using git. Some of them are git repositories, some are svn. For the svn repos I get sometimes a remote branch called "trunk", sometimes I get "git-svn". For the git repos I get always the "master" branch and sometimes some more.

I am only interested in the master branch (i.e., master, trunk, or git-svn, whatever applies). I'd like to make it all work the same, and ideally name the remote branch "org", so I can do

git checkout master; git fetch-upstream; git rebase org

where "fetch-upstream" is my repository-local alias getting the data from the upstream (e.g., "git svn fetch"). The fetch works fine, but I'm failing to rename the remote branch for one repository (I may be using a wrong term here; what I want is to make the above command line work for all my repos).

Regards, Maaartin.
Next: Maaartin
Message 1 of 2 in “Renaming remote branch”
  1. MaaartinApr 15, 2011
  2. MaaartinApr 20, 2011

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.