Read the statement by Michael Teeuw here.
Question about backup script
-
@rkorell you got prompted twice for username because git needs to know who you are and how to reach you if there are concerns about your “commit” to the repo. you csn see this in git log
output in the backup folder
this is username and email addressthen the push , github needs to know . this is the password prompt from git
you could use git config to save those, and avoid the prompts
-
@sdetweil said :
you could use git config to save those, and avoid the prompts
Sounds cool.
How can I do this?Thanks!
Ralf -
@rkorell google is your friend
how to use git config
-
@sdetweil said in Question about backup script:
if i find extra files i need a place to store them, so the module name for a folder is created
Thanks for this explanation - this is what I had assumed.
Regards,
Ralf -
@sdetweil said in Question about backup script:
how to use git config
OK, thanks.
I had understood that this is a config of your scripts, sorry. -
@rkorell no… you can store config settings for git (the source code repository tool MagicMirror uses and most modules use (…git clone))
and the way to make the repository that the backup uses -
@sdetweil as far as google told me it seems, I need to install Git CLI - which is not easy available for Raspi.
Any hint?
Sorry!
Ralf -
O.K,. Google is not my friend today…
It seems that a “.gitconfig” file will do the trick …
Will double check. -
Nope.
Doesnt’t work.
Have created a “.gitconfig” file withgit config --global --edit
Entered user, email and password - but your script asks again for “user” …
???
Thanks
Ralf -
@rkorell the SCRIPT does not prompt
I use these git config parms
if [ "$user_name." == "." ]; then # prompt for users name git config --local user.name $user_name else git config --local user.name $user_name fi if [ "$email." == "." ]; then # prompt for email address git config --local user.email $email else git config --local user.email $email fi
git will prompt