Skip to content

Feature Request: Fork Only Default Branch #1993

@gounthar

Description

@gounthar

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

  1. Efficiency: Reduces unnecessary data transfer and storage.
  2. Simplicity: Maintains a cleaner repository structure in our forks.
  3. Focus: Aligns with our primary need of working with the main branch.

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions