質問編集履歴

1

コードブロックをBashに全て変更, UserNameの括弧を全て変更, 1ヵ所コマンド$の前に残っていたディレクトリ階層を削除

2018/10/03 06:50

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -16,9 +16,9 @@
16
16
 
17
17
 
18
18
 
19
- ```Terminal
19
+ ```bash
20
20
 
21
- $ git remote add origin git@bitbucket.org:ユーザー名/hello_app.git
21
+ $ git remote add origin git@bitbucket.org:[UserName]/hello_app.git
22
22
 
23
23
  $ git push -u origin --all
24
24
 
@@ -30,9 +30,9 @@
30
30
 
31
31
 
32
32
 
33
- ```Terminal
33
+ ```bash
34
34
 
35
- ec2-user:~/environment/hello_app (master) $ git push -u origin --all
35
+ $ git push -u origin --all
36
36
 
37
37
  Warning: Permanently added the RSA host key for IP address '18.205.93.1' to the list of known hosts.
38
38
 
@@ -64,9 +64,9 @@
64
64
 
65
65
 
66
66
 
67
- ```Terminal
67
+ ```bash
68
68
 
69
- $ git remote add origin git@bitbucket.org:(UserName)/hello_app.git
69
+ $ git remote add origin git@bitbucket.org:[UserName]/hello_app.git
70
70
 
71
71
  fatal: remote origin already exists.
72
72
 
@@ -78,7 +78,7 @@
78
78
 
79
79
 
80
80
 
81
- ```Terminal
81
+ ```bash
82
82
 
83
83
  $ git push origin
84
84
 
@@ -98,7 +98,7 @@
98
98
 
99
99
 
100
100
 
101
- ```Terminal
101
+ ```bash
102
102
 
103
103
  $ git push --set-upstream origin master
104
104
 
@@ -108,7 +108,7 @@
108
108
 
109
109
  ! [rejected] master -> master (fetch first)
110
110
 
111
- error: failed to push some refs to 'git@bitbucket.org:(UserName)/hello_app.git'
111
+ error: failed to push some refs to 'git@bitbucket.org:[UserName]/hello_app.git'
112
112
 
113
113
  hint: Updates were rejected because the remote contains work that you do
114
114