wwindows上にvagrant、virtualboxを使い環境構築しました。
(ドットインストール参照)
git version 1.7.1です。
githubアカウントも作成済です。
仮想マシン上で名前とメールアドレスを登録し、
(git config —global user.name <ユーザー名>,git config —global user.email <メールアドレス>を実行)
該当のディレクトリで
git init
git add .
git commit -m"firstcommit"
でコミットを行いました。
githubでリモートリポジトリを作成し、
git remote add origin <URLアドレス>
git push origin master
でプッシュしたところ、
error: The requested URL returned error: 403 Forbidden while accessing <URLアドレス>/info/refs
fatal: HTTP request failed
というエラーが発生しプッシュできません。
また、git remote set-url origin git@github.com:<githubのユーザー名>/<リポジトリ名>.git
でも試してみましたが、プッシュしても
Warning: Permanently added the RSA host key for IP address '<IPアドレス>' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
というエラーが出てしまいます。
どうしたらいいでしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。