에러내용
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
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.
혹시 저같은 분이 계실까봐 올려둡니다.
맥 쓰시는 분 중에서 푸쉬할 때 authentication 창에서 잘못된 아이디 비번 저장하셨는데
그 잘못된 설정 때문에 계속 푸쉬가 안되는 경우가 있는 것 같습니다.
윈도우랑 다르게 tools 도 없어서 sourcetree 내에서는 그 설정을 바꾸는 게 없는 것 같습니다(현재는)
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
Pushing to https://github.com......git
To https://github.com......git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/khcho0/opentutorials_git_cho.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
이런에러가 뜨는데 구글링해보니까 서버에 있는 내용이 푸쉬하려는 내용보다 더 최신이기때문에 푸쉬를 할 수 없어서 나오는 오류라고 하는데 저는 git자체를 이 강의보면서 처음배웠고 원격저장소도 강의따라서 계정새로 만들고 똑같이 진행했습니다.. 그런데 서버에 아무것도 없을텐데 저 에러가 나오는 이유가 궁금합니다..
윈도우 7에 깔아서 테스트 한거는 Push를 해도 계속 뺑뺑이를 돌고 있네요 그래서 윈8.1에 깔아서 해 봤더니
거기서는 잘되고요
윈7에서도 pull 잘됩니다 어떤 분이 ssh 를 사용하니깐 된다고 하셨는데 ssh를 사용하는 강좌는 없나요?
계속 무슨 키를 만들어야 되는거 같네요
구글하다가 찾은 정보로는, (git이 설치된 폴더입니다.) ..\git\bin 폴더안의 libcurl.dll을 %windir%\SysWOW64 폴더 안의 libcurl.dll 위에 덮어씌우면 해결이 됩니다. cURL은 Client URL로, 커맨드에서 URL로 데이터를 전송할때 사용하는 프로그램이라네요. 파일의 수정은 다른분들도 흔히 하는편이네요.