I am using windows and i am completely new to github. I have installed desktop client. I wanted a single txt file to automatically uploaded to my github repository when it's changed or updated locally. I want this to completely automatic process as file is also getting updated automatically every hour and as soon as file gets updated i want it to be commit and pushed to my github repository.
To auto commit every one hour you can create a batch file (.bat) with this content:
cd C:\path\to\your\git\project
git add --all
git commit -m "autoCommit %date:~-4%%date:~3,2%%date:~0,2%.%time:~0,2%%time:~3,2%%time:~6,2%"
git push
exit
Create a task on the Task Scheduler and run this file every one hour.
(You can also run it every 1 minute and you will be updated almost in "real time").
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With