I have written scripts for Windows and Linux to essentially set up a new users workspace with all the git repositories from our server.
I would like the user to enter th
Read the remote url from git and then insert the ID and password (PW) to the url might work.
url
git
ID
PW
For example try the following:
cd ${REPOSITORY_DIR} origin=$(git remote get-url origin) origin_with_pass=${origin/"//"/"//${USER_ID}:${USER_PW}@"} git pull ${origin_with_pass} master