Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] scm next steps

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "Jeremy Blosser (emrys)" <jblosser-smgl AT firinn.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] scm next steps
  • Date: Thu, 4 May 2006 15:42:44 -0500

On May 04, Eric Sandall [eric AT sandall.us] wrote:
> Arwed von Merkatz wrote:
> > On Thu, May 04, 2006 at 01:33:17PM -0700, Eric Sandall wrote:
> <snip>
> >> Is there a way we can avoid having to use a URL when pushing to the
> >> server we checked out from and with the branch we're currently in
> >> without setting an alias?
> >
> > There is, but it needs a little setup:
> > - edit .git/remotes/origin in your repository, add these lines:
> > Push: refs/heads/devel:refs/heads/devel
> > Push: refs/heads/master:refs/heads/origin
> > Push: refs/heads/stable-0.3:refs/heads/stable-0.3
> > Push: refs/heads/stable-rc-0.4:refs/heads/stable-rc-0.4
> >
> > Now you can push using the branch names, i.e.
> > $ git push origin master (pushes your master branch to remote origin ,i.e.
> > the remote test grimoire)
> > $ git push devel devel
> > ...
>
> Since those are already in .git/remotes/origin I can just use the names
> then. Looks like git sets these up for us. ;)

Look again, it sets up the Pull lines, but not the Push lines.

Attachment: pgpqZBM8mX9AV.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page