回答編集履歴
2
Add notification
answer
CHANGED
@@ -29,6 +29,7 @@
|
|
29
29
|
> リスト 1.11の最初のコマンドは、BitbucketをリポジトリのoriginとしてGitの設定ファイルに追加するためのものです。
|
30
30
|
|
31
31
|
`git@bitbucket.org:????/ hello_app.git` の `:` が全角で入力されていることが原因かもしれません
|
32
|
+
`/` の後にスペースが空いているのも気になります
|
32
33
|
|
33
34
|
## 手順が失敗していることを確認する方法
|
34
35
|
|
1
Fix mistake
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
次の箇所の手順が
|
1
|
+
次の箇所の手順が失敗しています
|
2
2
|
|
3
3
|
[1.4.3 Bitbucket](https://railstutorial.jp/chapters/beginning?version=5.1#sec-bitbucket)
|
4
4
|
|
@@ -8,13 +8,30 @@
|
|
8
8
|
git remote add origin git@bitbucket.org:ユーザー名/hello_app.git
|
9
9
|
```
|
10
10
|
|
11
|
+
```console
|
12
|
+
???:~/environment/hello_app (master) $ git remote add origin git@bitbucket.org:????/ hello_app.git
|
13
|
+
|
14
|
+
usage: git remote add [<options>] <name> <url>
|
15
|
+
|
16
|
+
-f, --fetch fetch the remote branches
|
17
|
+
--tags import all tags and associated objects when fetching
|
18
|
+
or do not fetch any tag at all (--no-tags)
|
19
|
+
-t, --track <branch> branch(es) to track
|
20
|
+
-m, --master <branch>
|
21
|
+
master branch
|
22
|
+
--mirror[=<push|fetch>]
|
23
|
+
set up remote as a mirror to push to or fetch from
|
24
|
+
```
|
25
|
+
|
11
26
|
この操作は
|
12
27
|
ローカルの Git リポジトリーに、プッシュ先のリモートリポジトリーを `origin` という名前で登録する操作です
|
13
28
|
|
14
29
|
> リスト 1.11の最初のコマンドは、BitbucketをリポジトリのoriginとしてGitの設定ファイルに追加するためのものです。
|
15
30
|
|
16
|
-
|
31
|
+
`git@bitbucket.org:????/ hello_app.git` の `:` が全角で入力されていることが原因かもしれません
|
17
32
|
|
33
|
+
## 手順が失敗していることを確認する方法
|
34
|
+
|
18
35
|
次のコマンドを実行します:
|
19
36
|
|
20
37
|
```console
|
@@ -22,4 +39,5 @@
|
|
22
39
|
origin
|
23
40
|
```
|
24
41
|
|
42
|
+
このコマンドは登録済みのリモートリポジトリーを表示します
|
25
|
-
ここで、先ほどの手順が
|
43
|
+
ここで、先ほどの手順が失敗していると、`origin` が表示されません
|