Re: Local branch to remote branch translation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Nov 11, 2007, at 8:36 PM, Jon Smirl wrote:

On 11/11/07, Steffen Prohaska <prohaska@xxxxxx> wrote:

On Nov 11, 2007, at 7:02 PM, Jon Smirl wrote:

Is the remote config not correct?

This is the configuration for remote "dreamhost". In your
previous mail you also mentioned a remote "linus". But
this seems to be unrelated to your question.


[remote "dreamhost"]
        url = ssh://jonsmirl1@xxxxxxxxxxxxxxxxxxx/~/mpc5200b.git
        fetch = +refs/heads/*:refs/remotes/dreamhost/*

correct. This fetches the branches from the remote and stores
them locally as remote tracking branches "dreamhost/<branch>".

        push = +refs/heads/*:refs/remotes/linus/*

This "renames" your branches when you push. Your local branches
get pushed to "dreamhost" and are stored there as remote branches
"linus/<branch>". From your previous mail I assume you like to store
them as normal branches. You'd need to say

I did this part incorrectly. I was trying to push my local definition
of the linus remote to the dreamhost repo so that when someone clones
dreamhost linus would be defined in their repo.

jonsmirl@terra:~/mpc5200b$ git remote show linus
* remote linus
URL: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/ linux-2.6.git

How do I push the definition of the linus remote repo?

You can't. Remotes are local to a repository. They cannot be
"pushed" nor will they be "cloned" or "fetched".

	Steffen



-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux