본문 바로가기
+ Application

[Git] Git 특정 Branch Pull 하기

by :: Teacher :: 2020. 2. 5.
728x90
반응형

Git을 이용하여 프로젝트 관리시 Master가 아닌 Develop으로 생성하여 개발 후 Test 를 위해 Git Pull이 필요한 경우가 있다.

Develop과 같이 특정 Branch(브랜치)를 Pull 하는 방법을 알아보도록 하자.

  • $ git pull origin <branch명>
# git pull origin <branch명>

$ git pull origin develop
Cloning into 'test'...
Username for 'https://github.com': xxxxx
Password for 'https://xxxxx@github.com':
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 4 (delta 3), reused 4 (delta 3), pack-reused 0
Unpacking objects: 100% (4/4), done.
From https://github.com/test
 * branch            develop    -> FETCH_HEAD
Updating 8310be1..1de0e9f
Fast-forward
 app/test.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-) 

 

 

 

 

728x90
반응형

댓글


loading