git-cred.sh 298 B

12345678
  1. git config --global credential.helper "/bin/bash /git_creds.sh"
  2. echo '#!/bin/bash' > /git_creds.sh
  3. echo "sleep 1" >> /git_creds.sh
  4. echo "echo username=$SERVICE_USER" >> /git_creds.sh
  5. echo "echo password=$SERVICE_PASS" >> /git_creds.sh
  6. # to test it
  7. git clone https://my-scm-provider.com/project.git