git pushしたら"does not appear to be a git repository" と言われた件
Githubにある自分のソースをcloneしてきて、pushしようとしたら"does not appear to be a git repository"というエラーになりました。
$ git push origin master fatal: 'git@github.com/xxx/phpsample.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly
結論
set-urlするときの指定が間違っていたようです。
そもそも最初、git confing -l でremote.origin.url を確認したら、
git://
となっていたので
git@
に変えようとして、git remote set-url を実行したのですが、
URLにコロンが必要みたいでした。
$ git remote set-url origin git@github.com/xxx/phpsample.git ではなく $ git remote set-url origin git@github.com:/xxx/phpsample.git # コロンが付く!
参考: http://stackoverflow.com/questions/7318918/fatal-does-not-appear-to-be-a-git-repository