Git Gateway error

Okay guys, so this is info for those who are struggling with it in 2022.

Here is a list of how to:

  1. DO NOT be pissed off like me, be better than me, it does not matter that you used TEMPLATE prepared by Netlify, they have not automated its testing, so keep patience and read next:
  2. If you have free tier JUST LIKE MANY OF US, do not follow this awesome post [Common Issue] Netlify CMS & Git Gateway - Email not confirmed because IT DOES NOT HELP
  3. Go to ./site/static/admin/config.yml (exactly this path, not something else)
  4. Add the branch field to config:
backend:
  name: git-gateway
  branch: main # <------ THIS
  1. Deploy website (push the changes) & wait until it finishes
  2. Go to /settings/identity#git-gateway in Netlify admin
  3. Disable & enable git-gateway
  4. Go to website /admin (NOBODY wrote it in README, so you must suffer, but whatever)
  5. Clear website data (or manually go to localStorage and cookies and remove ALL)
  6. Hard reload the page

Should work.
If it did not work, just leave the Netlify CMS, because they do not care about you, just like this Support Engineer answerd:

If you’ve indeed tried everything, I don’t think there’s anything more anyone can suggest.

You know…

Why am I using this straightforward language, because guys if you do something, please test it first, because people use it straight by your documentation and struggle sooooo much and spend sooooo much time and then we see this:

If you’ve indeed tried everything, I don’t think there’s anything more anyone can suggest.

5 Likes