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

이제 새 커밋을 원격 저장소로 푸시합니다.
"tutorial2" 디렉터리를 마우스 오른쪽 버튼으로 클릭하고 "Push"를 클릭합니다.

"OK"를 클릭하여 다음 화면으로 진행합니다.
다시 "OK"를 클릭합니다.

다음 화면은 진행 중인 푸시를 보여줍니다. 완료되면 "Close"를 클릭하여 완료합니다.

오른쪽 클릭 메뉴에서 "TortoiseGit" > "Show log"를 선택합니다. 이제 main
과 origin/main
은 같은 수준에 있습니다. 즉, 원격 저장소가 이제 최신 변경 사항으로 업데이트되고 로컬 저장소와 동기화됩니다.
이제 Backlog Git 페이지의 "Recent Updates" 아래에 새로 푸시된 커밋이 나열되어 있습니다.

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