Browse Source

[+] git cred helper

yurimaster 1 năm trước cách đây
mục cha
commit
019069aadb
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      git-cred.sh

+ 8 - 0
git-cred.sh

@@ -0,0 +1,8 @@
+git config --global credential.helper "/bin/bash /git_creds.sh"
+echo '#!/bin/bash' > /git_creds.sh
+echo "sleep 1" >> /git_creds.sh
+echo "echo username=$SERVICE_USER" >> /git_creds.sh
+echo "echo password=$SERVICE_PASS" >> /git_creds.sh
+
+# to test it
+git clone https://my-scm-provider.com/project.git