복제된 저장소에서 푸시
다음으로 우리가 방금 만든 복제된 저장소에서 푸시할 수 있습니다.
먼저 컴퓨터에서 새 tutorial2 폴더로 이동합니다. 아래의 굵은 텍스트를 "sample.txt"에 추가하고 원래 자습서 저장소에서와 동일한 방식으로 변경 사항을 커밋합니다.
Anyone can learn Git with this tutorial and Backlog
add: Register a change in an index
로컬 저장소 브랜치의 기록 로그가 업데이트되면 원격 저장소 브랜치보다 앞서게 됩니다

이제 새 커밋을 원격 저장소로 푸시합니다.
도구 모음에서 "Push" 아이콘을 클릭합니다.

메인 확인란이 선택되어 있는지 확인하고 "OK"를 클릭하여 진행합니다.

이제 main
과 origin/main
은 같은 수준에 있습니다. 즉, 원격 저장소가 이제 최신 변경 사항으로 업데이트되고 이제 우리의 로컬 저장소와 동기화됩니다.

이제 Backlog Git 페이지의 "Recent Updates" 아래에 새로 푸시된 커밋이 나열되어 있습니다.

다음 섹션 에서, 우리는 브랜치를 더 자세히 다룰 것이지만 이것은 이제 다음 각 참조가 가리키는 위치입니다.
- origin/main: 일반적으로 원격 저장소인
origin
의 메인 브랜치를 가리킵니다. - origin/HEAD:
origin
, 즉 원격 저장소의 현재 커밋을 가리킵니다. 대부분의 경우 로컬 저장소는 복제를 수행할 때origin/HEAD
와 동일한 위치를 가리킵니다(origin/main
과 동일). 그러나 다른 원격 브랜치로 체크아웃하는 경우에는 그렇지 않습니다. - main: 로컬 저장소의 메인 브랜치를 가리킵니다.