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

newbie branch repo migration question

From
DMDavid Mansfield <david@cobite.com>
Date
Jan 23, 2008, 16:03 UTC
Message-ID
<1201104233.3001.123.camel@gandalf.cobite.com>
Hi,

Suppose I have a local repo with a branch, 'master'. And I create a branch based on it called, 'topic1'. And I work and commit etc., make changes on 'master' and merge them back and forth etc.

Now I want to move the 'master' to a remote repository, but not 'topic1', and then I want to switch 'topic1' as a branch of the remote 'master' and not the local one. In fact, I want to 'get rid' of master locally (or, rather, have 'master' be a tracking branch of remotes/foo/master).

How is this accomplished?

Thanks, David

Message 1 of 1 in “newbie branch repo migration question”
  1. David MansfieldJan 23, 2008

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.