Search Suggest

Bài đăng

codecommit clone git repository

Install package

sudo apt install python-pip

pip install git-remote-codecommit


generate ssh pub key

ssh-keygen


Upload id_rsa.pub file to IAM user







Create file in .ssh/config

$ vim .ssh/config

Host git-codecommit.ap-south-1.amazonaws.com

  User ACCESS_KEY_HERE

  IdentityFile ~/.ssh/id_rsa


Clone codecommit repository

git clone ssh://ACCESS_KEY@git-codecommit.ap-south-1.amazonaws.com/v1/repos/repo_name new_code_dir

ref url:
https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html

Đăng nhận xét