Login to AWS console and select IAM service.
From the left side panel select Users
and create a new User
Select Programatic access
Give him permission by attaching existing policy AWSCodeCommitFullAccess
Review everything and hit Create
Go to the Security Credentials tab
Scroll down to the HTTPS git credentials section and hit Generate credentials. Write down the username and password or download the file.
Now you can select your working folder and add remote git to it as usual using the username and password from the last step.
dotnet new webapp -o WebAppTest cd WebAppTest/ git init git remote add origin https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/MohsenTestRepo git add . git commit -m"First commit" git push origin master