Git
-
브랜치명 생략한 git push, pull 사용하기git 2021. 6. 9. 01:12
로컬에서 생성한 브랜치를 remote 저장소로 올려줄 때 처음에는 git push만으로 올릴 수 없고 다음과 같은 에러가 나온다. ➜ test git:(test2) git push fatal: The current branch test2 has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin test2 위 가이드대로 실행하거나, 다음과 같이 브랜치명을 명시하고 -u 옵션으로 upstream을 설정해 push 하면 이후부터는 브랜치명을 생략하고 git push로도 사용 가능하다. git push -u origin test2 하지만 매 브랜치를 새로 생성..