본문 바로가기

main/GIT

[GIT] remote 오류

[Error Message]

You asked to pull from the remote 'origin', but did not specify a branch. Because this is not the default configured remote for your current branch, you must specify a branch on the command line.

 

git remote

깃 리모트를 확인해보면 origin으로 잘 나오는데, 계속 이런 에러가 발생하면서

브랜치 체크아웃, 머지 등등의 명령어가 전부 안 됐다.

 

 

Confusing error message from git

I got this message from Git: You asked to pull from the remote 'origin', but did not specify a branch. Because this is not the default configured remote for your current branch, you must spe...

stackoverflow.com

이 스택오버플로우 글을 보고 

git branch -u origin/[current branch name] [current branch name]
git branch -u origin/master master

명령어를 수행한 뒤에 풀/머지가 가능했다.