質問編集履歴

2

リモートサーバへのコマンドを<code>でかこみました。

2018/01/16 23:38

投稿

AIUeno
AIUeno

スコア15

test CHANGED
File without changes
test CHANGED
@@ -20,9 +20,13 @@
20
20
 
21
21
  2)の手順で、clone しようとすると
22
22
 
23
+ ```Bash
24
+
23
25
  [root@server www]$ git clone --bare --shared ./html/repo/ share.git
24
26
 
25
27
  > Initialized empty Git repository in /xxx/xxx/www/share.git/
28
+
29
+ ```
26
30
 
27
31
 
28
32
 

1

手順に2)の内容を追加

2018/01/16 23:38

投稿

AIUeno
AIUeno

スコア15

test CHANGED
File without changes
test CHANGED
@@ -6,13 +6,15 @@
6
6
 
7
7
  手順は
8
8
 
9
- 1) リモートサーバでgit initし、デプロイ環境のリポジトリを作成。
9
+ 1) リモートサーバでgit initし、デプロイ環境のリポジトリを作成。
10
10
 
11
- 2) リモートサーバに、git clone公開しているファイルのベアリポジトリ作成 ← これができない
11
+ 2) git add . と git commit -m "first commit" 管理対象のファイルを登録
12
12
 
13
- 3) hookを作成
13
+ 3) リモートサーバに、git clone で公開しているファイルのベアリポジトリを作成。 ← これができない
14
14
 
15
+ 4) hookを作成…
16
+
15
- 4) ローカル環境にgit cloneする
17
+ 5) ローカル環境にgit cloneする
16
18
 
17
19
 
18
20