git clone https://$gitUsername:$gitPassword@$gitRepoLink; exit code example Example: avoid specifying username and password github git config credential.helper store