teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

hint文の変更

2019/05/25 09:07

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,11 +1,20 @@
1
1
  git push origin masterコマンドを実行すると以下のエラーが発生しました。
2
- エラーの原因も解決策もわからないのでどなたかお力をお貸しいただけますでしょうか。
3
- 宜しくお願い致します。
4
2
 
5
3
  ! [rejected] master -> master (fetch first)
6
- error: failed to push some refs to 'https://github.com/〇〇.git'
4
+ error: failed to push some refs to 'https://github.com/〇〇/〇〇.git'
7
5
  hint: Updates were rejected because the remote contains work that you do
8
6
  hint: not have locally. This is usually caused by another repository pushing
9
7
  hint: to the same ref. You may want to first integrate the remote changes
10
8
  hint: (e.g., 'git pull ...') before pushing again.
11
- hint: See the 'Note about fast-forwards' in 'git push --help' for details.
9
+ hint: See the 'Note about fast-forwards' in 'git push --help' for details.
10
+
11
+ 次にgit fetchを試すとhintが以下に変更されました。
12
+
13
+ error: failed to push some refs to 'https://github.com/〇〇/〇〇.git'
14
+ hint: Updates were rejected because the tip of your current branch is behind
15
+ hint: its remote counterpart. Integrate the remote changes (e.g.
16
+ hint: 'git pull ...') before pushing again.
17
+ hint: See the 'Note about fast-forwards' in 'git push --help' for details.
18
+
19
+ hintの内容もエラー内容もわからないので解決策がわかる方 どなたかお力をお貸しいただけますでしょうか。
20
+ 宜しくお願い致します。