화분

git pull 방법 본문

Study/Git or Github

git pull 방법

ExcellEast 2021. 11. 27. 16:10

원격저장소가 설정 안되었을 경우:

>git remote add origin <github 주소>

 

git pull 하는 방법:

>git pull origin 브런치명(ex: main)

 

fatal: refusing to merge unrelated histories ... 메세지가 뜨며 안될 때 해결방법:

>git pull origin main --allow-unrelated-histories 

 

해결!