깃오류

Git & GitHub/오류해결

[오류해결] fatal: The current branch master has no upstream branch.To push the current branch and set the remote as upstream

git push 명령어를 사용했을 때 아래와 같은 에러가 발생하면 어떻게 해야할까? $ git push fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin master 브랜치를 master로 언급하여 푸시해도 에러가 발생했다. $ git push origin master bash: $'\302\226git': command not found 이 에러의 원인은 원격저장소에 대한 브랜치 설정이 안되어있기 때문에 그런 것이다. 깃에서 제시해준 해결방법을 그대로 사용하면 대체로 해결이 된다. $ ..

gakko
'깃오류' 태그의 글 목록