소스트리를 사용하는도중 내 프로젝트를 github에 등록할려고 했으나 전체 공용 프로젝트에 내 코드가 올라가는 오류가 발생..
프로젝트 등록부터
시작부터 already exist 라는 문구가 보여서 이상했고,
또한, 아래와같은 에러가 나오기도했다.
➜ test git:(master) git push -u origin master To ex) https://github.com/~~~ ! [rejected] master -> master (fetch first) error: failed to push some refs to ' ex) https://github.com/~~~ hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
이부분에 대한 해결방법을 찾았는데 적용해서 아래 명령으로 강제로 푸쉬를 해주니
$ git push origin +master
결국, 클론을 받았던 부모 프로젝트가 변경됬다ㅠ
해결방법
원인을 찾아보니 이미 존재하는 주소인데 강제 푸쉬를해서 원래 부모 프로젝트에 새롭게 갱신됨.. ( 같이 프로젝트한 현업자분에게 들은건데 git init을 했어도 따로 설정을 해주면 해결이 가능하다고 한다? - 이부분은 나중에 좀 더 알아봐야겠다)