Re: Problem with a push

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

 




On Tue, 12 Jun 2007, Alex R.M. Turner wrote:
> 
> Based on what you've said, it seems like I should be initialising a blank 
> repo on machine A, then pushing from machine B to machine A, rather than 
> cloning on A from B.

That's generally what you'd do for a central repo, yes.
But:

> At this point would it just be sensible to delete the remote branches on 
> machine A?

Yes, in the current environment, the easiest thing to do is to just remove 
those branches.

OR, alternatively, just keep them, but on machine B, make your .git/config 
file have something like

	[remote "origin"]
		url = ssh://aturner@xxxxxxxxxxxxxxxxxx/data/git/mls
		fetch = +refs/heads/*:refs/remotes/origin/*
		push = refs/heads/*:refs/heads/*

which should just make it clear to "git push" than when you push from B to 
"origin", you should push everything under "refs/heads" (assuming that's 
what you want, of course)-


		Linus
-
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