앞서 이클립스를 통해서 깃허브와 연동하는 방법을 포스팅하는 과정 중에 생긴 오류가 났습니다 -_-;..
왠만하면 초심자의 행운으로 한번에 될 법한데 안되더라구요.
(초보자는 당황...)
이에 따라 해결방법까지 포스팅하게 됐습니다.
(포스팅 복이 넘쳐흐릅니다)
개요)
아래와 같은 메시지가 출력되어 깃허브로 push 가 되지 않는 상황입니다.
![](https://t1.daumcdn.net/cfile/tistory/993FC74A5C3D7DBB0F)
=======================
해결 솔루션 발동!!
=======================
Git Repositories 를 열어주세요!
Window → Show View → Other
Git → Git Repositories 를 선택하고 OK !!
그럼 아래 사진처럼 짠!
Git Repositories 에서 오류나는 저장소를 선택하시고!
Remote → Origin 에서 Configure Fetch 를 클릭!!
![](https://t1.daumcdn.net/cfile/tistory/9919DC435C3D7DF711)
그럼 아래와 같이 또 짠!!
![](https://t1.daumcdn.net/cfile/tistory/996AF8445C3D7E4E16)
Ref mapping 비어있으신 분은 옆에 Add 를 누르고 추가를 하시고 Advanced 를 클릭!
사진처럼 있으시다면 그냥 Advanced 를 클릭!
그럼 다른 창이 짠!!
![](https://t1.daumcdn.net/cfile/tistory/9964D3445C3D7E4F0C)
여기서 파란 휴지통 모양의 Remove 를 클릭!!
Click to remove this specification !!
![](https://t1.daumcdn.net/cfile/tistory/99675D425C3D810110)
Source ref 에서 master 를 선택!! 후 Add Spec 을 눌러주세요!
![](https://t1.daumcdn.net/cfile/tistory/999D61425C3D813119)
그리고 Finish 를 눌러주면 끝!!
...이 아니네요!!
![](https://t1.daumcdn.net/cfile/tistory/99D746495C3D815F12)
Save and Fetch 를 눌러줍니다!
![](https://t1.daumcdn.net/cfile/tistory/993FDF3C5C3D817F1F)
Close 하시고...
![](https://t1.daumcdn.net/cfile/tistory/994A1A365C3D819B1E)
Brancheds 아래 Local 에 있는 master 을 누르시고 우클릭!! 하시면 Merge 가 있습니다!
클릭합니다!
![](https://t1.daumcdn.net/cfile/tistory/99815F3B5C3D81E626)
Merge 누르시고!
![](https://t1.daumcdn.net/cfile/tistory/996B283D5C3D821215)
Ok!!
![](https://t1.daumcdn.net/cfile/tistory/993F1D3C5C3D82391F)
web_test [Local repository master ↑2]
이렇게 변했습니다!
![](https://t1.daumcdn.net/cfile/tistory/9954FA335C3D827728)
자자, 이제 Push 를 다시 합니다!
![](https://t1.daumcdn.net/cfile/tistory/991326365C3D82BB23)
만질게 없습니다!
Configured remote repository 가 선택되어 있으니...Next!
![](https://t1.daumcdn.net/cfile/tistory/99D37C365C3D82BC19)
여기도 만질게 없네요!
Next ~ !
만약 Specifications for push 에 아무것도 없다면
Source ref 를 누르시고 master [branch] 선택 후 Add Spec 클릭! 하세요!
![](https://t1.daumcdn.net/cfile/tistory/9939243D5C3D831F25)
이메일과 비번 입력쓰~!!!
![](https://t1.daumcdn.net/cfile/tistory/990C8C365C3D82BD16)
짠!!!
Finish!!!!!
rejected - non-fast-forward 이 메시지가 드디어 안뜨네요!!
이제 업로드 완...료...?
읭?
![](https://t1.daumcdn.net/cfile/tistory/99D218365C3D82BD19)
또 이메일과 비번 입력합니다......!!!
드디어 끝!!!
깃허브에서 확인을 해봅니다!
![](https://t1.daumcdn.net/cfile/tistory/991A08365C3D82BD15)
짜잔...!!
드디어 오류 해결이네요!! ㅎㅎ
그럼 오류 강좌(?)를 마치며 마침표와 함께 떠납니다 ~~!!
ps. 초보자는 힘드네요...