question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After changing branch in config.yml Netlify-cms still commits to the old branch

See original GitHub issue

My config.yml originally looked like this

backend:
  name: github
  # name: git-gateway
  repo: <REPO_NAME>
  branch: copy-changes
  #identity_url: https://dustinbold.netlify.com/.netlify/identity
  #gateway_url: https://dustinbold.netlify.com/.netlify/git

media_folder: static/cms/uploads
#media_folder_relative: true
public_folder: /cms/uploads

It now looks like this -

backend:
  name: github
  # name: git-gateway
  repo: XelpmocDesignandTechPvtLtd/agebold-web
  branch: staging
  #identity_url: https://dustinbold.netlify.com/.netlify/identity
  #gateway_url: https://dustinbold.netlify.com/.netlify/git

media_folder: static/cms/uploads
#media_folder_relative: true
public_folder: /cms/uploads

However when I go the CMS, it still commits to the old branch rather than the new branch. I then sshed into my container and went to my build folder and checked the config.yml there…but the config.yml there has the new branch as well.

I’m not sure what’s going on.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
erquhartcommented, Nov 8, 2019

Whatever address you’re using to access the CMS, open the config file from there in your browser. Eg., example.com/admin/config.yml

Sent with GitHawk

0reactions
erezrokahcommented, Mar 5, 2020

Thanks for the update, closing 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration Options | Netlify CMS | Open-Source Content ...
All configuration options for Netlify CMS are specified in a config.yml file, ... Save draft, Commits to a new branch (named according to...
Read more >
Netlify CMS Rebuild Config.yml Changes - Stack Overflow
The following config will be looking for changes on GitHub in the master branch of netlify/netlifycms-example repository. admin/config.yml
Read more >
Not showing collections - Netlify CMS
When making changes on our dev branch, the CMS doesn't reflect what's on our master/production branch - we get an error (below).
Read more >
Netlify CMS - My Docs - GitBook
You can enable the Editorial Workflow with the following line in your Netlify CMS config.yml file: publish_mode: editorial_workflow.
Read more >
How to Build a Blog with Gatsby and Netlify CMS
Add all the code snippets in this section to your admin/config.yml file. We'll begin by adding the following codes: backend: name: git ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found