Yet another branch not found

Hello Community <3

i started a hugo site with a deploy to netlify button (what a great feature<3)
The Documentation i followed for the CMS is this one:
https://www.netlifycms.org/docs/add-to-your-site/

What i am curious about is that i get the branch not found error.
i set my repository to private but i reauthenticated the oauth installed the github app and regenerated the git gateway token.

now i wonder about the line in the config.yml

branch: main # Branch to update (optional; defaults to master)

since i used the quick deploy my branch is “master” and i dont have any other branches.

Do i still have to change this line?

With kind regards

Hi @DSDV,

I’m assuming you’re talking about deploying from the frameworks page on jamstack.org using the deploy to Netlify button on the Hugo card. I just did the same myself and, as you pointed out, that template uses a default branch of master.

I think you’re on the right track! Try swapping out main for master there in the config.yml and see if you have better luck with your deployment.

Let me know what happens.

Elden

I had a similar problem in gatsby-starter-decap-cms that was resolved by changing the branch from main to master in config.yml

Hi @chrisf welcome to the community! Thanks so much for sharing this with the community. (: