-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Fork Only Default Branch #1993
Comments
Please look at the GitHub API documentation and see if this option is provided there. |
Thanks, I'll do that and keep this issue updated. 👍 |
I tried with this bash script:
and it worked. My fork only has one branch:
|
REST API doc: |
Yes. |
@gounthar Awesome, post your attempt as a PR (even if incomplete and we can discuss. From the API doc, there are three optional parameters:
We have to different method to create forks I kind of understand why someone chose the two names but... We should probably mark both of these as |
Yes, thanks for the explanation, @bitwiseman. 👍 |
Here is an incomplete and draft PR: #1994. |
What feature do you want to see added?
Current Situation
When forking a repository on GitHub, our current process retrieves all branches from the original repository.
Issue
This approach may be inefficient and unnecessary for our use case.
Desired Outcome
We aim to fork only the default branch of the repository, as this is typically sufficient for our work.
GitHub GUI Option
The GitHub web interface provides an option to fork only the default branch (usually the main branch).
Benefits
Conclusion
Optimizing our forking process to retrieve only the main branch will streamline our workflow and improve overall efficiency. This change aligns with best practices for managing forks when only the main branch is needed for development or analysis purposes.
The text was updated successfully, but these errors were encountered: