Gatsby starter from a GitHub branch

1 min read

If you want to create a new Gatsby project from a specific branch of a repository, the syntax is as follows:

gatsby new gatsby ''

You append .git#branch-name to the https URL of GitHub repository.

Small trick, but took a while to track down, hope it helps somebody.

Rating: 5.0 - 2 Reviews
Is this post useful to you? Please give us a rating!


Want regular updates on Gatsby and its awesomeness? Subscribe here. No spam, promise. Full details on privacy.

We use MailChimp as our marketing automation platform. By clicking "Submit" to submit this form, you acknowledge that the information you provide will be transferred to MailChimp for processing in accordance with their Privacy Policy and Terms.


If you'd like to share this post, here are some handy links to make that easier.

Post last updated: March 30, 2018


Feedback? A point to make? Express yourself via the comment form below.

Don't forget to check the captcha. Otherwise we won't receive your comment.

Be the first to post a comment on this post