I have a script that automatically adds, commits and pushes to Bitbucket. It runs as expected and it backs up my Obsidian folder containing markdown files.
I want to run this script through crontab but I don't fully succeed. Adding and committing works as expected, but when I try to connect to Bitbucket I get:
fatal: could not read Password for 'https://---@bitbucket.org': Device not configured
It seems to me that cron can't access my credentials. Now, I am not sure how to tackle this as I am not 100% sure how the credentials are handled... When I was setting up my credentials I followed this guide (for MacOS): https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/
With that background: how do I tell, either in crontab or my script, to use the credentials (that I think are stored in my keychain).
Help is much appreciated!