Allow a Fork of a Repo to sync individual branches from the Upstream repo at any time #155459
Replies: 4 comments 1 reply
-
|
You can do this from the command line |
Beta Was this translation helpful? Give feedback.
-
|
Hi @vanm, You don't need to delete and re-fork a repository just to work on a specific branch. You can import individual branches from the upstream repository into your fork. Here’s how: Steps to Import a Specific Branch:
Example: This way, you can work on any specific branch from the upstream repository without needing to delete and re-fork your repository. |
Beta Was this translation helpful? Give feedback.
-
|
We’re glad you could get this solved and we want to make sure others can do the same so we’ve reopened this discussion for better discoverability for our members. |
Beta Was this translation helpful? Give feedback.
-
|
For checking the sync status of all your forks at once from the terminal, I built branch-watch. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
Hello, when forking a repo, Github asks if we would like to copy only the "main" branch. If you leave this default checked, and later decide that you actually do want to work on a specific branch (that is not "main") from the Upstream repo, you need to delete your entire fork and re-fork from the upstream branch. Instead, it would be nice to be able to select individual branches from the upstream of any fork and sync/copy that branch to your fork.
Beta Was this translation helpful? Give feedback.
All reactions