[에러]
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
To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.
[해결]
git push --set-upstream origin main
[상황]
프로젝트 branch사용하다가 오랜만에 코테 공부한 거 git에 올리려는데
코테 branch랑 프로젝트 branch랑 다르니까 사용할 main branch 바꿔주라는 얘기다.
'사이드 프로젝트 > Error해결' 카테고리의 다른 글
[IntelliJ] could not find mysql:mysql-connector-java (0) | 2023.08.13 |
---|---|
[인증] remote: Invalid username or password. (0) | 2023.01.23 |
[Git] code: 'MODULE_NOT_FOUND', (0) | 2022.12.21 |
[Git] error: pathspec '' did not match any file(s) known to git (0) | 2022.12.21 |
Public key retrieval is not allowed 에러 해결 (0) | 2022.12.12 |