I used github to set up an heroku application using this link, in my application I create some new content (this is a wiki-like application where some new articles are created in the apps, no database involved the new articles are markdown files in the server). When the app is running, the articles are saved to the distant heroku server but if I do nothing, when I update the github repo and I rebuild the heroku app I loose every article I wrote.
My question is how can I manually (or automatically) push the new articles present server side to the github repo ? I can log in bash using heroku run bash
but once I am here, I am not in a github repo so I can't commit to save the articles I added.