본문 바로가기
오류

git_! [rejected] main -> main (non-fast-forward)

by 신방동불주먹 2023. 2. 7.

! [rejected]        main -> main (non-fast-forward)
error: failed to push some refs to 'https://github.com/yourim0/SpringProject.git'

 

 

원인 : .gitignore, readme 파일로 인한 오류

해결 : push 하려는 브랜치 이름 앞에 + 붙여서  push