Re: Local branch to remote branch translation

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

 




On Nov 11, 2007, at 10:20 PM, Jon Smirl wrote:

On 11/11/07, Steffen Prohaska <prohaska@xxxxxx> wrote:
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".

Dreamhost is way slow compared to kernel.org, so it is better to clone
from kernel.org first and then pull from dreamhost. What is the right
sequence of commands so that a new user will end up with a kernel they
can use 'git pull' on to get updates from dreamhost? I'll add these to
the repo description page.

I'm trying this locally and I can't figure out the right sequence of
git command to redirect origin from kernel.org to dreamhost.

How about the following (untested sequence)

	mkdir linux-2.6
	cd linux-2.6
	git init
git remote add linus git://git.kernel.org/pub/scm/linux/kernel/git/ torvalds/linux-2.6.git git remote add origin ssh://jonsmirl1@xxxxxxxxxxxxxxxxxxx/~/ mpc5200b.git
	git fetch linus
	git fetch origin
	git checkout -b master origin/master

The general idea should be correct. You have a non-standard
setup, so avoid git-clone.

	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