src refspec main does not match any

· GitHub & Git
늘 Eclipse만 쓰다가 IntelliJ로 Github 연결해서 첫 commit을 할려고 하는데 main에 커밋되지않고 master에서 커밋이 되어서 master->main으로 변경하다가 발생한 오류로 해결 방법을 포스팅 해보려고 한다. errer: src refspec main does not match any이 메세지는 로컬에 아직 main 이라는 브랜치가 없어서 push할 수 없다는 뜻이다. 🔧 해결 방법✅ 1. 현재 브랜치 확인하기터미널에 아래 명령어 입력하기git branch결과가 * master 로 나오면 아직 main 브랜치로 이름만 안 바꾼 것 ✅ 2. 브랜치 이름 바꾸기 (master → main)git branch -m main이제 main이라는 이름의 브랜치가 생긴 것 ✅ 3. G..
noeul.log
'src refspec main does not match any' 태그의 글 목록