Skip to content
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

Let hub fork copy only the main branch #3052

Open
joeytwiddle opened this issue Mar 20, 2023 · 0 comments
Open

Let hub fork copy only the main branch #3052

joeytwiddle opened this issue Mar 20, 2023 · 0 comments
Labels

Comments

@joeytwiddle
Copy link

joeytwiddle commented Mar 20, 2023

The problem I'm trying to solve:

When running hub fork all the branches are copied over to my fork.

This results in a lot of duplicate branches when doing git branch -r

Suggestion: Give hub fork an option (like GitHub website now has) to only copy over the default branch. (This is commonly main or master.)

We could also consider whether it's desirable to make this the default behaviour. (I would be in favour, but it would change hub's traditional behaviour.)

How I imagine hub could expose this functionality:

hub fork --lite

hub fork -l

hub fork --default-only (this is a bit cumbersome)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant