I want to update many repos with a loop in bash:
for dir in *; do ( cd $dir; git pull origin master ); done
Although there are many similar questions as
- How to enter command with password for git pull?
- How to input password to git pull command?
- How to provide username and password when run “git clone git@remote.git”?
git just allows to set credentials by
- modifying the remote repo: http://:@host/...
- using gitcredentials
Why is there no "--password
" option as e.g. in mysql command line?
This would help a lot for automating git tasks on the fly.
Is that a planned git feature and already on the roadmap or do we have to stick with the option given today for a long time?
Is there a workaround to specify the password e.g. using piping mechanisms?