If you want to create a new Gatsby project from a specific branch of a repository, the syntax is as follows:
gatsby new gatsby 'https://github.com/GatsbyCentral/gatsby-starter-lumen.git#gatsby-v2'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.
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