Skip to main content
  1. Learn center
  2. Software Development
  3. Guides
  4. Git tutorial
  5. Git 사용 방법
  6. 명령줄에서 Git을 사용하는 방법
  7. 저장소에서 풀링
GuidesSoftware DevelopmentBacklog
Git

Project and code management together.

저장소에서 풀링

이제 원격 저장소에서 로컬 저장소(즉, "tutorial" 디렉터리)로 최신 변경 사항(방금 이전 단계 에서 푸시했음)을 풀링하겠습니다.

이제 원격 저장소가 tutorial2의 변경 사항으로 최신 상태이므로 변경 사항을 풀링하고 초기 저장소 디렉터리인 tutorial을 동기화하겠습니다.

풀링을 실행하려면 git pull 명령을 사용합니다. 저장소 이름을 포함하지 않으면 origin이라는 별칭으로 저장소에서 풀링이 실행됩니다.

$ git pull origin main
  Username:
  Password:
  From https://example.backlog.com/git/BLGGIT/tutorial.git
  * branch            main     -> FETCH_HEAD
  Updating ac56e47..3da09c1
  Fast-forward
  sample.txt |    1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

Git log 명령 을 사용하여 기록이 업데이트되었는지 확인합니다.

$ git log
  commit 3da09c1134a41f2bee854a413916e4ebcae7318d
  Author: username
  Date:   Thu Jul 12 18:02:45 2022 +0900

  append description of the add command

  commit ac56e474afbbe1eab9ebce5b3ab48ac4c73ad60e
  Author: username
  Date:   Thu Jul 12 18:00:21 2022 +0900

      first commit

이제 새 커밋이 이 저장소의 기록 로그 아래에 나열됩니다.

sample.txt 파일을 열고 내용을 확인합니다.

Anyone can learn Git with this tutorial and Backlog
add: Register a change in an index

콘텐츠에 추가된 add: Register a change in an index가 표시됩니다.

Subscribe to our newsletter

Learn with Nulab to bring your best ideas to life