How to safely share only a specific branch (older version) with external developers? #172281
-
BodyHi everyone 👋 I’d like to get some advice on how to safely collaborate with external developers while using GitHub (Free plan). How to safely share only a specific branch (older version) with external developers?Situation
Options considered so far
QuestionIs there a better approach that I might be missing? Thanks in advance 🙏 Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hey there! 👋 Thanks for posting in the GitHub Community, @seunggihong ! We're happy you're here. You are more likely to get a useful response if you are posting in the applicable category. The Accessibility category is a place for our community to discuss and provide feedback on the digital accessibility of GitHub products. Digital accessibility means that GitHub tools, and technologies, are designed and developed so that people with disabilities can use them. I've gone ahead and moved this to the correct category for you, |
Beta Was this translation helpful? Give feedback.
-
The safest option is to extract the branch into a new repository so external developers can’t access other branches. `# Clone your original repo Create a new bare repo for sharinggit clone --bare temp-repo.git Push only the specific branch to a new remote repogit push --mirror refs/heads/branch-name:refs/heads/branch-name |
Beta Was this translation helpful? Give feedback.
-
Hi @seunggihong 👋 Great question — this is a common challenge with GitHub Free plan since branch-level permissions are only available in paid plans. Here are a few practical options: 1. Create a separate repository
2. Use a mirror/fork approach
3. Patch-based workflow (advanced)
Hope this helps! 🚀 |
Beta Was this translation helpful? Give feedback.
Hi @seunggihong 👋
Great question — this is a common challenge with GitHub Free plan since branch-level permissions are only available in paid plans.
Here are a few practical options:
1. Create a separate repository
✅ Easiest and safest way to limit access.
2. Use a mirror/fork approach
3. Patch-based workflow (advanced)
git format-patch
) or…