All of lore.kernel.org
 help / color / mirror / Atom feed
From: Graeme Geldenhuys <graemeg@gmail.com>
To: git@vger.kernel.org
Subject: Re: Pushing to GitHub doesn't push all branches
Date: Fri, 10 Jul 2009 17:07:43 +0200	[thread overview]
Message-ID: <h37lh2$q3s$1@ger.gmane.org> (raw)
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/

  parent reply	other threads:[~2009-07-10 15:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-10 13:24 Pushing to GitHub doesn't push all branches Graeme Geldenhuys
2009-07-10 14:45 ` Michael J Gruber
2009-07-10 14:58   ` Michael J Gruber
2009-07-10 15:07   ` Graeme Geldenhuys [this message]
2009-07-10 15:51     ` Michael J Gruber
2009-07-13  8:12       ` Graeme Geldenhuys
2009-07-13 11:01         ` Michael J Gruber
2009-07-13 13:41           ` Graeme Geldenhuys

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h37lh2$q3s$1@ger.gmane.org' \
    --to=graemeg@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.