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

Re: Pushing to GitHub doesn't push all branches

From
Graeme Geldenhuys <graemeg@gmail.com>
Date
Jul 10, 2009, 15:07 UTC
Message-ID
<h37lh2$q3s$1@ger.gmane.org>
In-Reply-To
<4A575416.2090304@drmicha.warpmail.net>
Michael J Gruber wrote:
> 
> You really mirrored your repo: All your "lost" branches are remotes on
> the github side as well. That has two consequences:

The two branches that are of most importance to me, is "trunk" and "fixes_2_2" as found in the SubVersion repository.

refs/remotes/trunk refs/remotes/fixes_2_2

So should I have only pushed the above mentioned branches, but as "true" heads in GitHub. Geesh, I hope I am understanding what I am typing, because I feel a bit lost now. :-)

Is there any way to clean up the mess available on GitGub? So that 'git ls-remote ...' will only show the real remotes.... Or should there be no remotes on GitHub?

Sorry, I'm fairly new to Git and it feels like I jumped into the deap end here. ;-)

> (assuming there are only svn branches) into proper heads on github, i.e.
> a refspec like '+refs/remotes/*:refs/*' for your pushes.

I'll read the man pages on what that refspec means... If I manage to only push 'trunk' which is master under git and 'fixes_2_2' which will be some other name under git, how to I keep both those in sync with the SubVersion repository.

At the moment I have a cronjob that executes the following every 30 minutes. ==================== cd /mnt/samba/git/fpc.git/ $GIT checkout master $GIT svn rebase $GIT gc --auto $GIT push origin master ====================

Does 'git svn rebase' get all branch or does it just update "master" (Trunk from SubVersion)?

I apologise for all the questions...
Regards,
   - Graeme -
-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
Previous: Michael J GruberNext: Michael J Gruber
Message 4 of 8 in “Pushing to GitHub doesn't push all branches”
  1. Graeme GeldenhuysJul 10, 2009
  2. Michael J GruberJul 10, 2009
  3. Michael J GruberJul 10, 2009
  4. Graeme GeldenhuysJul 10, 2009
  5. Michael J GruberJul 10, 2009
  6. Graeme GeldenhuysJul 13, 2009
  7. Michael J GruberJul 13, 2009
  8. Graeme GeldenhuysJul 13, 2009

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.