0

I want to make a PS script for checking out my Dev branch and pulling the latest commits, however when you perform the git pull it requests a username and password. I want to inject my username, and then type the password myself. How would I go about doing this?

Current code:

git checkout development
git pull
Melvin Gruschow
  • 293
  • 1
  • 3
  • 9
  • Why don't you [change your git config](https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration)? [and saving the password detailed here](https://stackoverflow.com/questions/35942754/how-to-save-username-and-password-in-git) – Maximilian Burszley Oct 19 '18 at 17:56
  • For some reason in my environment at work, this doesn't work. – Melvin Gruschow Oct 19 '18 at 18:54

0 Answers0