I have a crontab script to push some files to git. I use github desktop and it created my directory on my M1 MacOs computer.
Shell Script:
#!/bin/sh
cd /Users/me/Documents/GitHub/myUsername.github.io
git add -A
git commit -m "Daily update."
git push
The script works just fine when I run it from terminal but when I run it via chron I get the message
fatal: could not read Username for 'https://github.com': Device not configured
How can I run this from crontab and have it successfully push?