0
0

More than 1 year has passed since last update.

今更だけど、cloud shell でcodecommit リポジトリを作る

Posted at

cloud shellを開く
cloiudshell.png

リポジトリを作成、リポジトリ名はmyrepositorytestformomokukko

aws codecommit create-repository --repository-name myrepositorytestformomokukko --repository-description "My demonstration repository" --output yaml 

[cloudshell-user@ip-10-2-59-249 ~]$ aws codecommit create-repository --repository-name myrepositorytestformomokukko --repository-description "My demonstration repository" --output yaml
repositoryMetadata:
  Arn: arn:aws:codecommit:ap-northeast-1:123456789123:myrepositorytestformomokukko
  accountId: '123456789123'
  cloneUrlHttp: https://git-codecommit.ap-northeast-1.amazonaws.com/v1/repos/myrepositorytestformomokukko
  cloneUrlSsh: ssh://git-codecommit.ap-northeast-1.amazonaws.com/v1/repos/myrepositorytestformomokukko
  creationDate: '2023-02-04T01:58:27.641000+00:00'
  lastModifiedDate: '2023-02-04T01:58:27.641000+00:00'
  repositoryDescription: My demonstration repository
  repositoryId: edbe267d-1x1x-467f-8a91-123456789xxx
  repositoryName: myrepositorytestformomokukko
[cloudshell-user@ip-10-2-59-249 ~]$ 
[cloudshell-user@ip-10-2-59-249 ~]$ 

コンソールでリポジトリを確認
viwerepo.png
emptyrepository.png

リポジトリに新しくファイルを作成
ファイル名はtestfile
空のリポジトリにファイル作成すると自動的にmainブランチが作成される。
creatfilenakami.png
commitchanges.png

mainブランチとファイルを確認

committedtomain.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0