본문 바로가기

카테고리 없음

git push 안될 때(fatal: The current branch main has no upstream branch.To push the current branch and set the remote as upstream, use)

 

fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use

   git push --set-upstream origin main

1. git push origin main

2. git push origin master

 

1번 해보고 안되면 2번 ㄱㄱ