Skip to content

Instantly share code, notes, and snippets.

@teshi04
Last active December 30, 2015 22:09
Show Gist options
  • Save teshi04/7892158 to your computer and use it in GitHub Desktop.
Save teshi04/7892158 to your computer and use it in GitHub Desktop.
bareリポ作るときのメモ
cd repos
mkdir shintyoku-bot.git
cd shintyoku-bot.git
git init --bare
cp hooks/post-receive.sample hooks/post-receive
echo (cd /home/teshi/public/shintyoku-bot; git --git-dir=.git pull) >> hooks/post-receive
cd ~/public
git clone ../repos/shintyoku-bot.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment