Search code examples
gitamazon-web-servicesgit-cloneaws-codecommit

Unable to access CodeCommit repo using username password inside URL


I want to clone codecommit repo using username password inside clone URL. I am using following

URL:

git clone https://username:password@git-codecommit.eu-west-1.amazonaws.com/v1/repos/sample-repo

But I am getting this error:

fatal: unable to access 'https://username:password@git-codecommit.eu-west-1.amazonaws.com/v1/repos/sample-repo/' : Port number ended with 'c'

whereas this method worked for another account without issue, is there any permission issue on credentials.


Solution

  • I removed special character / from password and replaced it with escape character that fixed my problem.

    Escape Character for / is %2F