On Sun, 30 Jan 2011 17:19:28 -0800 (PST) harlan <[email protected]> wrote:
> I'm trying to split out a directory, and subdirectories, into a > separate repository. I can split (copy) my local repository, but so > far haven't been able to make anything save to it correctly. Looks like it's a task for git-subtree [1]. > Also, my project is hosted on SourceForge. I can split (copy) the > repository, but I can't get anything to save to it from my local > computer. After splitting and verifying each resulting branch (or repository) has sensible state and history, you supposedly had to overwrite certain branches in the remote repository. This is done either by forced push of the new (state of a) branch to the appropriate branch in the remote repository (e.g. `git push --force origin master`) or by deleting the remote branch and re-creating it (possibly at the same time, e.g. `push origin :master my-new-local-master:master`). In either case be sure you do understand the consequences of changing all the history of the branches you intend to replace -- see [2] for instance. [...] 1. https://github.com/apenwarr/git-subtree 2. https://git.wiki.kernel.org/index.php/GitFaq#Why_won.27t_.22git_push.22_work_after_I_rebase_a_branch.3F -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
