Q&A
terminal
1[vagrant@localhost hMenu]$ git init 2Reinitialized existing Git repository in /home/vagrant/hMenu/.git/ 3 4[vagrant@localhost hMenu]$ git remote add origin https://github.com/hogehoge/intro_git.git 5fatal: remote origin already exists. 6 7[vagrant@localhost hMenu]$ git push origin master 8Password: 9error: The requested URL returned error: 403 Forbidden while accessing https://hogehoge@github.com/hogehoge/intro_git.git/info/refs 10 11fatal: HTTP request failed 12[vagrant@localhost hMenu]$
試したこと
$ git init や $ git remote rm origin でやり直してみましたが変化はありませんでした。
$ git remote set-url origin https://hogehoge@github.com/hogehoge/intro_git.git
と、調べて紹介されていた書き方で試してみましたがこれでも変化はありませんでした。
メモ
・ユーザーネームは小文字空白なしのフルネーム
・メールアドレスは登録済み
・ディレクトリ
▼????hMenu
_▶︎????js
_▶︎????index.html
_▶︎????css
_▶︎????.git
原因のわかる方いらっしゃいましたら教えていただけると幸いです。
また、情報に不足がありましたらすぐに追加致しますので、ご指摘お願いいたします。
追記
回答1件
良いと思った回答にはグッドを送りましょう。
グッドが多くついた回答ほどページの上位に表示されるので、他の人が素晴らしい回答を見つけやすくなります。
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
退会済みユーザー
2020/08/04 05:40 編集
2020/08/04 06:08