Supplying a password to git in a bash script

From a bash script I would like to supply a password. I have tried the following:

echo 'mypass' | git pull

git pull < 'mypass'

git pull < echo 'mypass'

None seem to work.

Source: bash

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.