CodeCommit 리포지토리 세부 정보 보기 - AWS CodeCommit

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

CodeCommit 리포지토리 세부 정보 보기

AWS CodeCommit 콘솔이나 리포지토리에 연결된 로컬 리포지토리의 Git을 사용하여 사용 가능한 CodeCommit 리포지토리에 대한 정보를 볼 수 있습니다. AWS CLI

이러한 지침을 따르기에 앞서 설정 의 단계를 완료합니다.

리포지토리 세부 정보 보기 (콘솔)

AWS CodeCommit 콘솔을 사용하면 Amazon Web Services 계정으로 생성된 모든 리포지토리를 빠르게 볼 수 있습니다.

  1. https://console.aws.amazon.com/codesuite/codecommit/home 에서 CodeCommit 콘솔을 엽니다.

  2. 리포지토리에서 로그인한 AWS 리전 의 리포지토리에 대한 세부 정보를 볼 수 있습니다. 리전 선택기를 사용하여 다른 AWS 리전을 선택하면 해당 리전의 리포지토리를 볼 수 있습니다.

  3. 자세한 내용을 보려는 리포지토리의 이름을 선택한 다음 다음 중 하나를 수행합니다.

    • 리포지토리 복제를 위한 URL을 보려면, URL 복제를 선택한 다음, 리포지토리를 복제할 때 사용할 프로토콜을 선택합니다. 이렇게 하면 복제 URL이 복사됩니다. 이를 검토하려면 일반 텍스트 편집기에 붙여넣습니다.

    • 리포지토리의 구성 가능한 옵션과 세부 정보(예: 리포지토리 ARN 및 리포지토리 ID)를 보려면 탐색 창에서 설정을 선택합니다.

참고

IAM 사용자로 로그인한 경우 코드 및 다른 콘솔 설정 보기에 대한 기본 설정을 구성하고 저장할 수 있습니다. 자세한 정보는 사용자 기본 설정으로 작업을 참조하세요.

CodeCommit 리포지토리 세부 정보 보기 (Git)

로컬 리포지토리의 CodeCommit Git을 사용하여 리포지토리에 대한 세부 정보를 보려면 명령을 실행합니다. git remote show

이 단계를 수행하기 전에 로컬 리포지토리를 리포지토리에 연결하세요. CodeCommit 자세한 내용은 리포지토리에 연결 섹션을 참조하세요.

  1. git remote show remote-name명령을 실행합니다. 여기서 remote-name은 CodeCommit 리포지토리의 별칭 (기본값) 입니다. origin

    작은 정보

    CodeCommit 리포지토리 이름 및 해당 URL 목록을 가져오려면 명령을 실행합니다. git remote -v

    예를 들어 origin 별칭이 있는 CodeCommit 리포지토리에 대한 세부 정보를 보려면

    git remote show origin
  2. HTTPS의 경우에는 다음과 같이 합니다.

    * remote origin Fetch URL: https://git-codecommit.us-east-2.amazonaws.com/v1/repos/MyDemoRepo Push URL: https://git-codecommit.us-east-2.amazonaws.com/v1/repos/MyDemoRepo HEAD branch: (unknown) Remote branches: MyNewBranch tracked main tracked Local ref configured for 'git pull': MyNewBranch merges with remote MyNewBranch (up to date) Local refs configured for 'git push': MyNewBranch pushes to MyNewBranch (up to date) main pushes to main (up to date)

    SSH의 경우에는 다음과 같이 합니다.

    * remote origin Fetch URL: ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/MyDemoRepo Push URL: ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/MyDemoRepo HEAD branch: (unknown) Remote branches: MyNewBranch tracked main tracked Local ref configured for 'git pull': MyNewBranch merges with remote MyNewBranch (up to date) Local refs configured for 'git push': MyNewBranch pushes to MyNewBranch (up to date) main pushes to main (up to date)
    작은 정보

    IAM 사용자에 대한 SSH 키 ID를 조회하려면, IAM 콘솔을 열고 IAM 사용자 세부 정보 페이지에서 보안 인증 정보를 확장합니다. SSH 키 ID는 SSH 키의 항목에서 찾을 수 있습니다. AWS CodeCommit

다른 옵션들에 대해서는 Git 설명서를 참조하세요.

CodeCommit 리포지토리 세부 정보 보기 ()AWS CLI

에서 AWS CLI 명령을 사용하려면 CodeCommit 를 설치하십시오 AWS CLI. 자세한 정보는 명령줄 참조을 참조하세요.

를 사용하여 리포지토리 세부 정보를 AWS CLI 보려면 다음 명령을 실행합니다.

리포지토리 목록을 보려면 CodeCommit

  1. list-repositories 명령 실행:

    aws codecommit list-repositories

    선택적 --sort-by 또는 --order 옵션을 사용하여 반환되는 정보의 순서를 변경할 수 있습니다.

  2. 성공하면 이 명령은 Amazon Web Services 계정과 CodeCommit 연결된 모든 리포지토리의 이름 및 ID를 포함하는 repositories 객체를 출력합니다.

    다음은 위의 명령을 기반으로 하는 출력 예시입니다.

    { "repositories": [ { "repositoryName": "MyDemoRepo", "repositoryId": "f7579e13-b83e-4027-aaef-650c0EXAMPLE" }, { "repositoryName": "MyOtherDemoRepo", "repositoryId": "cfc29ac4-b0cb-44dc-9990-f6f51EXAMPLE" } ] }

단일 리포지토리에 대한 세부 정보를 보려면 CodeCommit

  1. --repository-name옵션을 사용하여 CodeCommit 리포지토리 이름을 지정하여 get-repository 명령을 실행합니다.

    작은 정보

    CodeCommit 리포지토리 이름을 가져오려면 list-repositories 명령을 실행합니다.

    예를 들어, 이름이 지정된 저장소에 대한 세부 정보를 보려면 다음과 같이 하십시오. CodeCommit MyDemoRepo

    aws codecommit get-repository --repository-name MyDemoRepo
  2. 이 명령이 제대로 실행되면 다음 정보를 포함하는 repositoryMetadata 객체가 출력됩니다.

    • 리포지토리의 이름 (repositoryName)

    • 리포지토리의 설명 (repositoryDescription)

    • 리포지토리의 고유 시스템 생성 ID (repositoryId)

    • 리포지토리와 연결된 Amazon Web Services 계정의 ID (accountId)

    다음은 위 예제 명령의 출력 예입니다.

    { "repositoryMetadata": { "creationDate": 1429203623.625, "defaultBranch": "main", "repositoryName": "MyDemoRepo", "cloneUrlSsh": "ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/MyDemoRepo", "lastModifiedDate": 1430783812.0869999, "repositoryDescription": "My demonstration repository", "cloneUrlHttp": "https://codecommit.us-east-2.amazonaws.com/v1/repos/MyDemoRepo", "repositoryId": "f7579e13-b83e-4027-aaef-650c0EXAMPLE", "Arn": "arn:aws:codecommit:us-east-2:111111111111:MyDemoRepo", "accountId": "111111111111" } }

여러 CodeCommit 리포지토리에 대한 세부 정보를 보려면

  1. batch-get-repositories 옵션으로 --repository-names 명령을 실행합니다. 각 CodeCommit 저장소 이름 사이에 공백을 추가합니다.

    작은 정보

    리포지토리 이름을 가져오려면 list-repositories 명령을 실행합니다. CodeCommit

    예를 들어, 이름이 및 인 두 저장소에 대한 세부 정보를 보려면 CodeCommit MyDemoRepo MyOtherDemoRepo

    aws codecommit batch-get-repositories --repository-names MyDemoRepo MyOtherDemoRepo
  2. 이 명령이 제대로 실행되면 다음 정보를 포함하는 객체가 출력됩니다.

    • 찾을 수 없는 모든 CodeCommit 리포지토리 목록 (). repositoriesNotFound

    • CodeCommit 리포지토리 목록 (). repositories 각 CodeCommit 리포지토리 이름 뒤에는 다음이 붙습니다.

      • 리포지토리의 설명 (repositoryDescription)

      • 리포지토리의 고유 시스템 생성 ID (repositoryId)

      • 리포지토리와 연결된 Amazon Web Services 계정의 ID (accountId)

    다음은 위 예제 명령의 출력 예입니다.

    { "repositoriesNotFound": [], "repositories": [ { "creationDate": 1429203623.625, "defaultBranch": "main", "repositoryName": "MyDemoRepo", "cloneUrlSsh": "ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/MyDemoRepo", "lastModifiedDate": 1430783812.0869999, "repositoryDescription": "My demonstration repository", "cloneUrlHttp": "https://codecommit.us-east-2.amazonaws.com/v1/repos/MyDemoRepo", "repositoryId": "f7579e13-b83e-4027-aaef-650c0EXAMPLE", "Arn": "arn:aws:codecommit:us-east-2:111111111111:MyDemoRepo", "accountId": "111111111111" }, { "creationDate": 1429203623.627, "defaultBranch": "main", "repositoryName": "MyOtherDemoRepo", "cloneUrlSsh": "ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/MyOtherDemoRepo", "lastModifiedDate": 1430783812.0889999, "repositoryDescription": "My other demonstration repository", "cloneUrlHttp": "https://codecommit.us-east-2.amazonaws.com/v1/repos/MyOtherDemoRepo", "repositoryId": "cfc29ac4-b0cb-44dc-9990-f6f51EXAMPLE", "Arn": "arn:aws:codecommit:us-east-2:111111111111:MyOtherDemoRepo", "accountId": "111111111111" } ], "repositoriesNotFound": [] }