Step 1
Login to console and select CodeCommit service and create a new repository.
Give it a name and optionally a description
Step 2
Step 3: Create a User
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.
Step 4
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
Top comments (0)