質問編集履歴
3
追加補足情報
title
CHANGED
File without changes
|
body
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
[確認したサイト1](https://note.com/shujimiyoshi/n/n6d518bff33f1)
|
37
37
|
[確認したサイト2](http://tk2-207-13211.vs.sakura.ne.jp/2015/12/479/)
|
38
38
|
|
39
|
-
### 補足情報
|
39
|
+
### 補足情報(投稿当初)
|
40
40
|
|
41
41
|
確認しているうちにエラーの表示が変わりました、、、。
|
42
42
|
```ここに言語を入力
|
@@ -48,4 +48,27 @@
|
|
48
48
|
初心者で調べ方等ももしかしたら間違ってしまっており、お手数おかけして大変申し訳ないのですが、
|
49
49
|
解決策をご教授いただけますと幸いです。
|
50
50
|
|
51
|
-
よろしくお願いいたします。
|
51
|
+
よろしくお願いいたします。
|
52
|
+
|
53
|
+
### 補足情報(2021/08/13 14:00)
|
54
|
+
push先をmainではなく、masterにしてみたところ問題なくpushすることができました。
|
55
|
+
```
|
56
|
+
$ git push origin master
|
57
|
+
Enumerating objects: 60, done.
|
58
|
+
Counting objects: 100% (60/60), done.
|
59
|
+
Delta compression using up to 8 threads
|
60
|
+
Compressing objects: 100% (60/60), done.
|
61
|
+
Writing objects: 100% (60/60), 4.04 MiB | 2.94 MiB/s, done.
|
62
|
+
Total 60 (delta 17), reused 0 (delta 0), pack-reused 0
|
63
|
+
remote: Resolving deltas: 100% (17/17), done.
|
64
|
+
remote:
|
65
|
+
remote: Create a pull request for 'master' on GitHub by visiting:
|
66
|
+
remote: https://github.com/ユーザー名/test/pull/new/master
|
67
|
+
remote:
|
68
|
+
To https://github.com/ユーザー名/test.git
|
69
|
+
* [new branch] master -> master
|
70
|
+
```
|
71
|
+
|
72
|
+
githubではデフォルトブランチがmainとなっているので、masterではなくmainの方にデータをpushしたいのですが、
|
73
|
+
どのように設定を変更したらよろしいでしょうか?
|
74
|
+
[こちら](https://qiita.com/masakinihirota/items/1a657674e609be112fc6)を参考としてやってみようかと思っているのですが、問題ないでしょうか?
|
2
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
0. [git init]を入力してローカルリポジトリが作成
|
9
9
|
0. [git add .]を入力してステージングさせる
|
10
10
|
0. [git commit -m “Create test”]で保存
|
11
|
-
このcommitの段階で[error: pathspec '
|
11
|
+
このcommitの段階で[error: pathspec 'test”' did not match any file(s) known to git]というエラーが表示されます。
|
12
12
|
|
13
13
|
※実は最初に試した時はうまくアップロードできたのですが、mainではなくmasterにpushしてしまったため最初からやり直そうと思い、github上でリポジトリを削除しました。これが良くなかったのではないかと思っています。
|
14
14
|
リポジトリを削除後にもう一度1からやってみようと削除したリポジトリ名と同じ名前でリポジトリを作成後、ターミナルで操作していたところ上述したようなエラーが表示されました。
|
@@ -16,7 +16,7 @@
|
|
16
16
|
### 発生している問題・エラーメッセージ
|
17
17
|
|
18
18
|
```
|
19
|
-
error: pathspec '
|
19
|
+
error: pathspec 'test”' did not match any file(s) known to git
|
20
20
|
```
|
21
21
|
|
22
22
|
### 該当のソースコード
|
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
$Initialized empty Git repository in /Users/rio/Desktop/test/.git/
|
28
28
|
$git add .
|
29
29
|
$git commit -m "Create test"
|
30
|
-
error: pathspec '
|
30
|
+
error: pathspec 'test”' did not match any file(s) known to git
|
31
31
|
```
|
32
32
|
|
33
33
|
### 試したこと
|