[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
명령어를 수행한 뒤에 풀/머지가 가능했다.
'main > GIT' 카테고리의 다른 글
Github Action으로 Fork Repo Sync 자동화하기 (+CI/CD) | 팀 레포 Vercel 무료 배포하기 (0) | 2024.11.09 |
---|---|
Github Profile에 간단하게 나를 소개하기 🤗 기술스택(+ICON) 기입 (0) | 2021.10.06 |
[GITHUB] Project/Issue 생성, Commit으로 Issue 닫기 (0) | 2021.08.14 |