A git clone is set up to support pushing/pulling back into the original repository. How do I use git-remote (and/or other commands, configuration files, etc.) to change the two repositories such that the original will now act like the clone, pushing and pulling into it by default, and the clone will now act as the original, with no knowledge of the clone?
views:
202answers:
2
+7
A:
Issue these commands on what used to be the remote:
% git remote add origin user@machine:/path/to/repo
% git config branch.master.remote origin
% git config branch.master.merge refs/heads/master
% git pull
Then on the old clone:
% git remote rm origin
Paul Beckingham
2009-02-16 18:11:14