I have a project in github. https://github.com/phantom111/gc . I want to write some code in the same project, to update the json file within the data folder. How to do this in js/jquery ?
You can't do this in a browser as github does not allow CORS . However, using a node.js backend of course you can checkout your code, manipulate it, commit and push to github. Maybe something like this works for you: https://github.com/creationix/js-git
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.