서론(Introduction)
Stage: 변경 사항을 커밋에 포함시키기 전에 준비하는 작업.
Commit: 로컬 Git 저장소에 변경 사항을 저장하는 작업.
Push: 로컬 Git 저장소에 있는 커밋을 원격 저장소로 전송하는 작업.
Stage: The process of preparing changes to be included in a commit, before actually committing them.
Commit: The operation of saving changes to the local Git repository.
Push: The action of transferring commits from the local Git repository to a remote repository.
Pull
GitHub에 업로드 되어 있는 것을 등록된 폴더로 다운로드하는 것을 배워보도록 하겠습니다.
Let's learn how to download what's uploaded to GitHub to the registered folder.
Step 1. Pull - 1
Source Control에서 오른쪽의 버튼을 클릭하고 'Pull'를 클릭하세요.
Click the button on the right and select 'Pull' in Source Control.
Step 2. Pull- 2
Pull이 무사히 완료되면 다음과 같은 화면을 확인할 수 있습니다.
When the pull is successfully completed, you will be able to see the following screen.
Push
변경된 사항을 Stage하고 Commit 후에 Push함으로써 GitHub에 업로드할 수 있습니다.
You can upload the changes to GitHub by staging them, committing, and then pushing.
Step 1. Push - 1
Source Control에서 Changes의 '+'버튼을 클릭하세요.
Click the '+' button in Source Control.
Step 2. Push - 2
Staged Changes가 생긴 것을 확인할 수 있습니다.
You will see the Staged Changes appear.
Step 3. Push - 3
Commit message를 입력하세요.
Enter the commit message.
Step 4. Push - 4
오른쪽의 버튼을 클릭하고 'Commit & Push'를 클릭하세요.
Click the button on the right and select 'Commit & Push'.
Step 5. Push - 5
Push가 무사히 시작되면 다음과 같은 화면을 확인할 수 있습니다.
Once the push starts successfully, you will see the following screen.
Tip. Pull & Push in Command Palette
Pull과 Push는 Command Palette에서도 진행할 수 있습니다.
You can also perform Pull and Push commands from the Command Palette.
Tip. Discard Changes
변경 사항(changes)를 삭제하고 싶을 경우, source control에서 다음과 같은 버튼들을 클릭하면 됩니다.
If you want to discard the changes, you can simply click on the following buttons in the source control.
Tip. Stash
변경 사항(changes)를 임시로 저장하고 싶을 경우, source control에서 'stash'를 이용하세요. Stash는 버전 관리에 사용될 수 있습니다.
Stash를 만들려면 'Stash'를 클릭하고, Stash를 불러오려면 'Apply Stash'를 클릭하세요.
자세한 자료는 오른쪽 링크들을 참고하세요.
If you want to temporarily save your changes, you can use the 'stash' feature in source control. Stashing can be useful for version control purposes.
To create a stash, click on 'Stash', and to apply a stash, click on 'Apply Stash'.
For detailed information, refer to the links provided on the right.