What's the difference between a fork and a branch for contributing to open source? #208674
|
I'm new to contributing to open source. When should I fork a repo vs just creating a branch? |
Replies: 3 comments
|
Thank you for your interest in contributing to our community! We currently only accept discussions created through the GitHub UI using our provided discussion templates. Please re-submit your discussion by navigating to the appropriate category and using the template provided. This discussion has been closed because it was not submitted through the expected format. If you believe this was a mistake, please reach out to the maintainers. |
|
Fork when you don't have write access to the repo (most open source). You fork → clone your fork → make a branch → PR back to original. Branch directly when you're a collaborator with write access. Rule of thumb: external contributor = fork, team member = branch. |
|
Hi @Nignion, We recently identified an issue that caused some discussions in the New to GitHub category to be closed unintentionally. We apologize for the confusion and any inconvenience this may have caused. We've reopened your discussion and noticed that you've already received assistance from a fellow community member. Thank you @TripleU613 for your contribution! If you have any further questions or need additional assistance, please feel free to continue the conversation here. 🤗 |
Fork when you don't have write access to the repo (most open source). You fork → clone your fork → make a branch → PR back to original. Branch directly when you're a collaborator with write access. Rule of thumb: external contributor = fork, team member = branch.