⚫︎ベアリポジトリの作成
git clone --bare --shared ~/hogehoge/projects projects.git
⚫︎リモートの作成
git remote add master /home/www/sample.com/public_html/wp-content/sample.git/
⚫︎ベアリポジトリからの自動pullの設定
vi post-receive
#!/bin/sh
cd /home/www/test/
git --git-dir=.git pull /home/www/test/test.git/
#権限付与
chmod +x post-receive
⚫︎
コメント