Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it Possible to Save To Local Repo Instead of Remote ? #4429

Closed
goldcoders opened this issue Oct 8, 2020 · 2 comments
Closed

Is it Possible to Save To Local Repo Instead of Remote ? #4429

goldcoders opened this issue Oct 8, 2020 · 2 comments
Labels
type: bug code to address defects in shipped code

Comments

@goldcoders
Copy link

The Way Netlify CMS work on live site, is it make push to the remote repo...
Its Ok but If The Build Time of the Repository is 1 min... Its Kinda Slow
To Deploy Site and See changes and wait for 1 min...

I have another built a wrapper on hugo site using netlify-cms and netlify-cms-proxy...
Which allows you to use cms easily updating locally...

Its cool, but I needed it to make a git commit every save to the local repo instead of not doing anything at all..

Is there a way to highjack that with netlify-cms-proxy
I would like to Save to A Local Git Repo...
when saving a Collection or file
Instead of doing nothing...

But then Add an extra Button Of Livesync or do a git push

I wanna utilize as much as possible little or to none a third party integration of doing it , or by creating another wrapper like
electron or tauri on top of this just to be able to make native command calls to git and netlify....

Any help would be appreciated thanks

@goldcoders goldcoders added the type: bug code to address defects in shipped code label Oct 8, 2020
@erezrokah
Copy link
Contributor

Hi @goldcoders, you can run the local proxy server in git mode:
https://github.com/netlify/netlify-cms/blob/277a1519bed31145910a67e22e0f51c46e8e2006/packages/netlify-cms-proxy-server/src/index.ts#L21

MODE=git npx netlify-cms-proxy-server

It's still very experimental (and needs a repo with no pending changes), but it will generate a local commit on each save.

Another options is to set up a separate watchman on the repo files, and act on that.

@martinjagodic
Copy link
Member

Closing as stale and/or outdated.

@martinjagodic martinjagodic closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

3 participants