Skip to content

Adding a folder from one repo to another #23346

Discussion options

You must be logged in to vote

If you’re referring to the solution described in this blog post, as one of the ones you’ve seen but disliked how it worked because it made changes to the source repository, then I’m afraid to say that it is the canonical solution for getting done what you’re describing. I also think you’re misunderstanding when you say that the solution requires "deleting the origin" or “create additional branch or commits”. Let me see if I can rephrase the solution more clearly.

The goal here is to copy from a repo named source to a repo named destination only the contents of folder foo, including all history that touches folder foo. In order to do that, because Git doesn’t track folders per se but track…

Replies: 18 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@gonzales-jorge-siul
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet