I have a script in which initially I do:
git clone --recursive https://$LoginRepo:$PassRep@git.example.com/my-repo.git
In next executions I always do git pull
without password.
The problem is that the password is shown in errors. And I'm logging results so password is visible in clear text... So how to disable showing password in a message like this?
fatal: repository 'https://login:My-pass-123@git.example.com/my-repo.git/' not found
Is there some git option to stop this? Or maybe some better way to init (clone) repo in a script?