将文件夹上传到 AWS CodeCommit 存储库

Jee*_*kar 5 amazon-web-services aws-codecommit

我们可以将包含各种代码文件的文件夹从本地系统上传到 AWS CodeCommit。如果是,那么要遵循的步骤是什么。?

Jor*_*art 0

我认为不可能通过用户界面上传整个文件夹。我认为这是使用现有 git 存储库的最简单方法,如下所示:

SCHEME="codecommit::${REGION}"
aws sts get-caller-identity # requires AWS credentials, with authorization
pip install git-remote-codecommit # using HTTPS GRC
git push -u ${SCHEME}://${TARGET_REPO} HEAD:refs/heads/master
Run Code Online (Sandbox Code Playgroud)