2024년 6월 17일부터 신규 고객은 Cloud Source Repositories를 사용할 수 없습니다. 이전에 조직에서 Cloud Source Repositories를 사용한 적이 없는 경우 API를 사용 설정할 수 없거나 Cloud Source Repositories를 사용할 수 없습니다. 조직에 연결되지 않은 새 프로젝트는 Cloud Source Repositories API를 사용 설정할 수 없습니다. 2024년 6월 17일 이전에 Cloud Source Repositories를 사용한 조직은 이 변경사항의 영향을 받지 않습니다.
Cloud Shell 환경이 포함된 새 브라우저 탭이 열립니다. 또한 저장소를 Cloud Shell로 클론할지 확인하는 메시지가 표시됩니다.
계속을 클릭합니다.
저장소의 클론을 포함하는 Cloud Shell 환경이 열립니다.
기본적으로 저장소의 위치는 ~/[repository name]입니다. 예를 들면 ~/hello-world입니다.
Cloud Shell에서 기존 저장소 열기
이미 저장소를 Cloud Shell 환경에 복제한 경우 이전 섹션의 단계를 따릅니다. Cloud Shell 환경이 준비되면 다음 옵션 중 하나를 선택하라는 메시지가 나타납니다.
해당 디렉터리로 이동합니다. 저장소가 있는 디렉터리로 자동 변경하려면 이 옵션을 선택합니다. 예를 들면 ~/hello-world입니다.
해당 디렉터리로 이동하여 git pull을 실행합니다. 저장소가 있는 디렉터리로 자동 변경하고 최신 버전의 저장소를 Cloud Shell 환경으로 가져오려면 이 옵션을 선택합니다.
git clone 명령어를 사용해 새 복사본을 클론합니다. Cloud Shell 환경에서 저장소가 포함된 새 폴더를 만들려면 이 옵션을 사용합니다. 새 폴더 이름은 저장소와 같으며 이름에 번호가 추가됩니다. 예를 들어 저장소의 두 번째 복사본인 hello-world의 이름은 ~/hello-world-2입니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-04-21(UTC)"],[],[],null,["# Browsing files in Cloud Shell\n\nThis topic describes how to browse files by using Cloud Shell.\n\nOpen a repository in Cloud Shell for the first time\n---------------------------------------------------\n\n1. In the Google Cloud console, open Cloud Source Repositories.\n\n [Open Cloud Source Repositories](https://source.cloud.google.com/repos)\n2. Click the name of a repository.\n\n A page opens, displaying the contents of the repository.\n3. Click **Edit code**.\n\n A new browser tab opens, containing the Cloud Shell environment. You're\n also prompted to confirm whether you want to clone the repository into your\n Cloud Shell.\n4. Click **Proceed**.\n\n A Cloud Shell environment opens, containing a clone of your repository.\n By default, the location of the repository is `~/[repository name]`. For\n example, `~/hello-world`.\n\nOpen an existing repository with Cloud Shell\n--------------------------------------------\n\nIf you have already cloned a repository into a Cloud Shell environment,\nfollow the steps in the preceding section. When the Cloud Shell environment\nis ready, you're prompted to select from one of the following options:\n\n- Navigate into that directory. To automatically change directories to the one containing your repository, choose this option. For example, `~/hello-world`.\n- Navigate into that directory and run `git pull`. To automatically change directories to the one containing your repository and pull the latest version of the repository to the Cloud Shell environment, choose this option.\n- Clone a new copy by using the `git clone` command. To create a new folder containing the repository in the Cloud Shell environment, choose this option. The new folder has the same name as the repository, with a number appended to it. For example, a second copy of the repository, `hello-world`, has the name `~/hello-world-2`."]]