Skip to content
Discussion options

You must be logged in to vote

Short answer

No, I don't think so. Long-term, it's probably best to stick with 1 repository per "fork."

Long answer

Yes, but it won't be easy.

You can partially do it like so:

# in forked_repos
git remote add repo-to-fork https://github.com/owner/repo-to-fork.git
git fetch repo-to-fork

Now you have the history of repo-to-fork available in your forks repo.

git branch repo-to-fork/main my-contribution
git checkout my-contribution
git push -u origin my-contribution

Now you've created a branch called my-contribution off of the repo-to-fork's main branch, and set git up so that you push to the my-contribution branch in your remote forked_repos repository.

However, once you've done that, AFAIK …

Replies: 17 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@PuffCab
Comment options

@jaikumar112
Comment options

Answer selected by PuffCab
Comment options

You must be logged in to vote
1 reply
@PuffCab
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@oomodan
Comment options

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

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
Issues Repository issues let you track features, problems, and more alongside your code Question Ask and answer questions about GitHub features and usage