git #github #gitlab #깃 #error

· 기타/git
[문제상황] 간혹 원래 없던 폴더를 생성하거나 파일 이름을 바꾼것 만으로도 오류 발생함. 혹은 Git 주소를 변경하는 경우 "error:src refspec master does not match any" Message가 뜨면서 push가 거부되는 현상이 발생할 수 있다. [해결] ※ Local Repository 에 commit 된 내용이 남아있을 경우 초기화해도 먹히지 않을 경우 (아래 방법 실패시) git rm --cached ./ 이 명령어를 입력하고 아래 순서대로 명령하면 됨. git init git add ./ git commit -m "message" git remote add origin "git remote repository URL" git push -u origin master
M_Falcon
'git #github #gitlab #깃 #error' 태그의 글 목록