2013-03-09 3 views
-1
[email protected] /e/projects/pySan (master) 
$ git remote add pySan [email protected]:sanfx/.git 

[email protected] /e/projects/pySan (master) 
$ git push -u origin master 
The authenticity of host 'github.com (207.97.227.239)' can't be established. 
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. 
Are you sure you want to continue connecting (yes/no)? yes 
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of know 
n hosts. 
Permission denied (publickey). 
fatal: The remote end hung up unexpectedly 

다른 방법으로 github에 푸시 할 수 있습니까? 나는 당신은 또한 SSH 문제가있을 수 있습니다 당신은 URL이 Github에 푸시 할 수 없기 때문에 "허가가 거부되었습니다 (공개 키)"

  • 잘못 REPO 윈도우 7

  • +0

    가능한 중복 http://stackoverflow.com/questions/8402281/github-push-error-permission-denied 및/또는 http://stackoverflow.com/questions/5026796/git-repositiory-adding-files –

    +1

    [ssh 키를 github에 업로드] (https://help.github.com/articles/generating-ssh-keys)? –

    +0

    예에 스리 칸스,이 문제를 해결하지만, 지금은이 '$의 자식 푸시 [email protected] 점점 오전 : '/e/Users/Administrator/.ssh/id_rsa'sanfx/pySan.git 키에 대한 암호를 입력 : 하려면 [email protected] : sanfx/pySan.git ! [rejected] master -> master (non-fast-forward) 오류 : '[email protected] : sanfx/pySan.git'에 대한 일부 참조를 푸시하지 못했습니다. 힌트 : 현재 브랜치의 끝이 뒤에 힌트 : 원격 대응. 리모트 변경 사항을 합치십시오. (예 : 'git pull') 힌트 : 'git push --help'에서 'fast forward'에 대한 자세한 내용은 ' –

    답변

    2
    1. 에 힘내 배쉬를 사용하고 있습니다.
    먼저의 방금 myrepo 만든 가정하자 the webinterface 또는 GitHub API

    를 통해, GitHub의에 빈 저장소를 만들어야합니다

    은, 사용하는 URL 구문은 다음과 같습니다 당신이 만약 여전히

    git remote add pySan [email protected]:sanfx/myrepo.git 
    

    SSH 오류가 있거나 공개/비공개 키 쌍을 확인하거나 https를 사용하여 시작하십시오.

    git remote set-url pySan https://github.com/sanfx/myrepo.git 
    
    +0

    어쨌든이 Windows 로그인을 위해 SSH 키를 올바르게 설정해야만이 명령을 사용해야했습니다. 'git push -f origin '과 나는 길을 걷고있다. –

    관련 문제