progateにおけるエラーの原因と解消方法(Git)
4行目の共有リポジトリへのプッシュコマンドをした後エラーが出ているのか、共有へ保存されず
受け取る側がプルできない状態です。git学習が初めてなのでコミット、プッシュができているのかも
わかりません。解答が載っているので、そのままコマンド入力して解決しようと試すもエラーが
出てしまうため自力での解決が難しいと感じ質問するに至りました。お手数をおかけいたしますが
ヒントなどでもありがたいです。ご返信をお待ちしております。よろしくお願いいたします。
Git
1・mysite $ git add stylesheet.css 2・mysite $ git commit -m "Create stylesheet.css"[master (root-commit) 33f66b4] Create stylesheet.css 3・1 file changed, 3 insertions(+) create mode 100644 stylesheet.css 4・mysite $ git push origin masterTo /home/progate/.remote/mysite.git 5・ ! [rejected] master -> master (fetch first) 6・error: failed to push some refs to '/home/progate/.remote/mysite.git' 7・hint: Updates were rejected because the remote contains work that you do 8・hint: not have locally. This is usually caused by another repositorypushing 9・hint: to the same ref. You may want to first integrate the remote changes 10・hint: (e.g., 'git pull ...') before pushing again. 11・hint: See the 'Note about fast-forwards' in 'git push --help' for details.
他サイトでの知識をもとに様々な方法を試したが、progateでのみの仕様となっているのか
最低限のコマンドしか受け付けず『許可されていないコマンド』と表示される。
プロゲート Git 学習コース Ⅰ共同開発をしてみよう!7. 共同開発の流れを復習しよう
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。