- Le plus récent
- Le plus de votes
- La plupart des commentaires
In my environment, I was able to clone the following.
If you do it with a username followed by a password, there should be no problem.
git clone https://username:password@my-repo-url.git
Please put your settings in the following file.
".git/config"
Please change the URL as follows.
[remote "origin"]
url = https://username:password@my-repo-url.git
Hi, this is my command output, the git command should have not access .git/config
root@vultr:~# git clone https://git-xxx.us-east-1.amazonaws.com/v1/repos/xxx_app.git Cloning into 'xxx_app'... Username for 'https://git-xxx.us-east-1.amazonaws.com': ^C
this command show username prompt for input success.
root@vultr:~# git clone https://xxx_git-at-1211112121@git-xxx.us-east-1.amazonaws.com/v1/repos/xxx_app.git Cloning into 'xxx_app'... fatal: unable to access 'https://git-xxx.us-east-1.amazonaws.com/v1/repos/aufwallet_app.git/': The requested URL returned error: 403
this command reject my request.
Is there any chance to see this working when specifying the username only? I need it to mirror an external repository to CodeCommit, and the interface (of the external repo) does not permit to specify the URL in the user:pwd form.
This is needed to address push repository mirroring like this: https://docs.gitlab.com/ee/user/project/repository/mirror/push.html#set-up-a-push-mirror-from-gitlab-to-aws-codecommit Other Git management tools work fine with the https://username@url form. Is there any chance to let this work?
Hello. We faced the same problem. The username is stored in the git config: remote.origin.url=https://username@git-codecommit.eu-west-1.amazonaws.com/v1/repos/repo and seems CodeCommit doesn't process this format of URL, it also returns 403. Could you please respond are there any reasons for such behavior or we should wait for a fix?
Contenus pertinents
- demandé il y a un an
- Réponse acceptéedemandé il y a 2 ans
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
Yes I test it , your command "git clone https://username:password@my-repo-url.git " works.
Does "git clone https://username@my-repo-url.git" works in your env?
No, if you do not include the password, it will fail with a 403 error.