본문 바로가기
여러가지/git

[GitLab] 리모트 에러 해결방법 !! error: refname refs/heads/master not found fatal: Branch rename failed

by 포스트it 2023. 6. 20.
반응형

 

[GitLab] 리모트 에러 해결방법 !!

error: refname refs/heads/master not found fatal: Branch rename failed

 

깃랩에서 리모트 도중 git branch -M main 명령어에서 위와 같은 에러가 발생하였고, 해결방법을 찾아보니

깃 add랑 commit 을 안해서 발생했다고 해서

$ git add *
$ git commit -m 'init'

진행 후 하니 잘 되었습니다 :)

 

 

728x90
반응형

댓글