設定ファイルをgithubへ。
ナニを隠そうvimを標準エディタとして使っております。
ただここ最近仕事の都合とかもあって何度かvimの環境(自分の好きな設定)を作らなイカンことがあって、ええかげんめんどくさいと。
で、かねてからアカウントを持ってたgithubへ移しましたとさ。
久々にpushしたのもあって躓いた箇所が二個
- pushしようとして「host can't be established」
こんなエラーが。
$ git push -u origin master
The authenticity of host 'github.com (207.97.227.239)' can't be established.
RSA key fingerprint is hogehoge.
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 known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
なんとなく認証がうまく行ってなさそうくらいしかわからん。
で、以下のサイトで解決。
Help.GitHub - Set Up Git
結局は「ssh認証用のRSA鍵を作ってなかった」なわけですね。
前はEclipseでやってたのでC\Users\xxxx\.sshとかに鍵ファイルを設定してたけど、今回(気まぐれで)cygwinからやったもんで鍵がなかったと。
- refspec master does not match any
で、次に進んだと思ったらまたエラー。
git push -u origin master
Enter passphrase for key '/home/xxxxx/.ssh/id_rsa':
error: src refspec master does not match any.
なんだこれは。。。
が、これも解決。(ネットすごいわ)
解決: src refspec master does not match any. failed to push some refs to... - 西尾泰和のはてなダイアリー
コミットしてなかっただけだった。。。
さすがにこれは恥ずかしい ...λ...
まぁ何はともあれこれでpushまでたどり着きましたとさ。
にしても最近少しだけ英語のサイトで問題解決できるようになってきたなぁ。
すこしずつ進歩しとる、かな。