I Need to do a git pull using https url as a oneline command . this command I need to integrate in a bash script . But all the time it is asking the usernmae and password .
The repository is in AWS codecommit
To set up HTTPS Git credentials for CodeCommit Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/ . Make sure to sign in as the IAM user who will create and use the Git credentials for connections to CodeCommit.
Try this:
git clone https://username:[email protected]/v1../repos../..
This way worked for me for CodeCommit (AWS) repository
Check this link: Enter user password in command
As is described perfectly in that post, you basically have three options:
https://user:pass@domain/repo
. Take into account that your password will be visible in several places...If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With