简体   繁体   English

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

[英]Uploading a folder to AWS CodeCommit repository

Can we upload a folder containing various code files from our local system to AWS CodeCommit.?我们可以将包含各种代码文件的文件夹从本地系统上传到 AWS CodeCommit。 If yes, then what are the steps to follow.?如果是,那么要遵循的步骤是什么?

I don't think it is possible to upload an entire folder through the UI.我认为不可能通过 UI 上传整个文件夹。 I think this the easiest way with an existing git repository, is as follows:我认为这是使用现有 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM