前提・実現したいこと
コマンドラインでgithubに自分の作ったhtmlファイルを送信したいのですが、エラーが出てうまくいきません。
初心者なりにいろいろ試したのですが、悪化してしまい、現在自分がどういう状況なのかもわかりません。
ターミナルで試したログを掲載します。
発生している問題・エラーメッセージ
HBK:radio
1HBK:radio scarecrow$ git remote add origin https://github.com/Hib3/radio.git 2HBK:radio scarecrow$ git push -u origin master 3To https://github.com/Hib3/radio.git 4 ! [rejected] master -> master (fetch first) 5error: failed to push some refs to 'https://github.com/Hib3/radio.git' 6hint: Updates were rejected because the remote contains work that you do 7hint: not have locally. This is usually caused by another repository pushing 8hint: to the same ref. You may want to first integrate the remote changes 9hint: (e.g., 'git pull ...') before pushing again. 10hint: See the 'Note about fast-forwards' in 'git push --help' for details. 11HBK:radio scarecrow$ 12HBK:radio scarecrow$ git branch 13 chekout 14 master 15 radio 16* test
試したこと
https://qiita.com/nnahito/items/565f8755e70c51532459
を参考にやっていると、git remote add origin がでたので、originを削除し、再度originを登録しようとしました。
http://pyoonn.hatenablog.com/entry/2014/10/29/191744
ほぼ全てわからないので、最初から教えていただけると幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。