깃 푸쉬1 Git branch의 push, --set-upstream 설정 생략하기 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 이렇게 항상 upstream branch를 설정하라는 문구가 나온다 친절하게도 커맨드 설명이 나와서 copy&paste 를 하면 해결이 되지만 브랜치를 생성할 때마다 매번 저 문구를 붙여 넣는 작업을 거쳐야 하기는 너무 번거로울 것이다 이러한 작업을 git의 config 설정으로 생략해본다. git config --global push.default current 위 커맨드.. 2020. 6. 25. 이전 1 다음 반응형