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

setting a different default branch #207

Closed
hamilton opened this issue Jun 12, 2020 · 2 comments · Fixed by #243
Closed

setting a different default branch #207

hamilton opened this issue Jun 12, 2020 · 2 comments · Fixed by #243

Comments

@hamilton
Copy link

Hi Rich! Many of the code bases I work on w/ others are renaming master to main. Is there an easy way to set the default branch w/ degit to something that isn't master within a project?

@korakot
Copy link

korakot commented Aug 17, 2020

I face the same problem.

Please have degit check for both master and main as defaults.

@canadaduane
Copy link

canadaduane commented Oct 14, 2020

I'm having the same issue. Is there a workaround for now?

UPDATE: You can suffix the git url with #main, e.g. npx degit canadaduane/svelte-rollup-images-app#main my-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants