git hooksまとめ
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Git]]
*概要 [#b763e89d]
-hooksに関するメモです。
-随時更新していきます
*git pushしたらhookで別のディレクトリへデプロイする手順 [...
***別のディレクトリ [#c2bef0dc]
$ mkdir 別のディレクトリ
$ cd 別のディレクトリ
$ git init
***bareリポジトリ [#jc65eb4c]
$ cd bareリポジトリ/.git/hooks/
$ vim post-receive
---
cd 別のディレクトリ
git --git-dir=.git pull bareリポジトリのパス master
---
$ chmod u+x post-receive
終了行:
[[Git]]
*概要 [#b763e89d]
-hooksに関するメモです。
-随時更新していきます
*git pushしたらhookで別のディレクトリへデプロイする手順 [...
***別のディレクトリ [#c2bef0dc]
$ mkdir 別のディレクトリ
$ cd 別のディレクトリ
$ git init
***bareリポジトリ [#jc65eb4c]
$ cd bareリポジトリ/.git/hooks/
$ vim post-receive
---
cd 別のディレクトリ
git --git-dir=.git pull bareリポジトリのパス master
---
$ chmod u+x post-receive
ページ名: