回答編集履歴
4
Add new answer
test
CHANGED
@@ -197,3 +197,27 @@
|
|
197
197
|
Are you sure you want to continue connecting (yes/no/[fingerprint])?
|
198
198
|
|
199
199
|
```
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
```console
|
204
|
+
|
205
|
+
Requested runtime (python-3.8) is not available for this stack (heroku-18)
|
206
|
+
|
207
|
+
```
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
runtime.txt には Heroku の Dyno がサポートしている Python バージョンを指定します:
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
```text
|
216
|
+
|
217
|
+
python-3.8.5
|
218
|
+
|
219
|
+
```
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
参考: [Supported runtimes | Heroku Python Support | Heroku Dev Center](https://devcenter.heroku.com/articles/python-support#supported-runtimes)
|
3
Add fourth expression
test
CHANGED
@@ -141,3 +141,59 @@
|
|
141
141
|
|
142
142
|
|
143
143
|
- [Git Graph - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph)
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
```console
|
148
|
+
|
149
|
+
$ git commit -am "make it better"
|
150
|
+
|
151
|
+
[master (root-commit) 460db2b] make it better
|
152
|
+
|
153
|
+
4 files changed, 45 insertions(+)
|
154
|
+
|
155
|
+
create mode 100644 Procfile
|
156
|
+
|
157
|
+
create mode 100644 main.py
|
158
|
+
|
159
|
+
create mode 100644 requirements.txt
|
160
|
+
|
161
|
+
create mode 100644 runtime.txt
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
$ git push heroku master
|
166
|
+
|
167
|
+
The authenticity of host 'heroku.com (50.19.85.156)' can't be established.
|
168
|
+
|
169
|
+
RSA key fingerprint is SHA256:8tF0wX2WquK45aGKs/Bh1dKmBXH08vxUe0VCJJWOA/o.
|
170
|
+
|
171
|
+
Are you sure you want to continue connecting (yes/no/[fingerprint])?
|
172
|
+
|
173
|
+
Host key verification failed.
|
174
|
+
|
175
|
+
fatal: Could not read from remote repository.
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
Please make sure you have the correct access rights
|
180
|
+
|
181
|
+
and the repository exists.
|
182
|
+
|
183
|
+
```
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
commit には成功していますが、push に失敗しています
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
次のメッセージが表示されたときに `yes` と入力します
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
```console
|
196
|
+
|
197
|
+
Are you sure you want to continue connecting (yes/no/[fingerprint])?
|
198
|
+
|
199
|
+
```
|
2
Add third expression
test
CHANGED
@@ -54,4 +54,90 @@
|
|
54
54
|
|
55
55
|
上記のような状態であれば、やはり `commit` がなされていないことが原因です
|
56
56
|
|
57
|
+
|
58
|
+
|
59
|
+
```console
|
60
|
+
|
57
|
-
|
61
|
+
git commit -am "make it better"
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
*** Please tell me who you are.
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
Run
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
git config --global user.email "you@example.com"
|
74
|
+
|
75
|
+
git config --global user.name "Your Name"
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
to set your account's default identity.
|
80
|
+
|
81
|
+
Omit --global to set the identity only in this repository.
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
fatal: unable to auto-detect email address (got 'masakazu@DESKTOP-D231TSH.(none)')
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
C:\Users\masakazu\Desktop\line-bot-test>
|
90
|
+
|
91
|
+
```
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
上記のメッセージにある通り、
|
96
|
+
|
97
|
+
まずメールアドレスとユーザー名を設定する必要があります:
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
```console
|
102
|
+
|
103
|
+
git config --global user.email "you@example.com"
|
104
|
+
|
105
|
+
git config --global user.name "Your Name"
|
106
|
+
|
107
|
+
```
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
コマンドラインでは不要なメッセージも多く表示されますが、
|
112
|
+
|
113
|
+
うまく動いていないと感じたら、メッセージを確認してみましょう
|
114
|
+
|
115
|
+
特に、Git に関しては
|
116
|
+
|
117
|
+
おかしいと思ったら `git status` コマンドを実行すれば
|
118
|
+
|
119
|
+
大体原因がわかります
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
または GUI ツールを使いましょう:
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
TOrtoiseGit:
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
- [どうやって Windows にGit をインストールしたらいいの? | ultra code](https://futureys.tokyo/how-should-i-install-git-on-windows/)
|
132
|
+
|
133
|
+
- [どうやって TortoiseGit を日本語化したらいいの? | ultra code](https://futureys.tokyo/how-should-i-translate-tortoisegit-in-japanese/)
|
134
|
+
|
135
|
+
- [Windows で Git を使いはじめる前に最低限しておいた方がいい設定まとめ | ultra code](https://futureys.tokyo/summary-of-settings-which-should-be-done-at-least-before-using-git-on-windows/)
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
VisualStudioCode:
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
- [Git Graph - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph)
|
1
Add expression
test
CHANGED
@@ -1,5 +1,57 @@
|
|
1
|
+
## 元の回答
|
2
|
+
|
3
|
+
|
4
|
+
|
1
5
|
`git commit` を忘れていませんか?
|
2
6
|
|
3
7
|
|
4
8
|
|
5
9
|
参考: [Answer: Message 'src refspec master does not match any' when pushing commits in Git](https://stackoverflow.com/a/7572252/12721873?stw=2)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## 追記
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
```console
|
18
|
+
|
19
|
+
$ git status
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
On branch master
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
No commits yet
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
Changes to be committed:
|
32
|
+
|
33
|
+
(use ''git rm --cached<file>...''to unstage)
|
34
|
+
|
35
|
+
new file: Procfile
|
36
|
+
|
37
|
+
new file: main.py
|
38
|
+
|
39
|
+
new file: requirements.txt
|
40
|
+
|
41
|
+
new file: runtime.txt
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
$ git log
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
fatal:your current branch 'master' dose not have any commits yet
|
50
|
+
|
51
|
+
```
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
上記のような状態であれば、やはり `commit` がなされていないことが原因です
|
56
|
+
|
57
|
+
`git commit` を実行したときにエラーメッセージが表示されていませんか?
|