by aurooba ahmed
this is not a step by step tutorial, you can view that at https://aurooba.com/wordcamp16.html
git init
# set up your information on the server if you haven't
# already
git config --global user.name "Aurooba Ahmed"
git config --global user.email typeyour@email.com
# create a directory that will house all your bare repos
mkdir theme-gitrepos
cd theme-gitrepos
# create directory to hold bare repo for theme called Mint
mkdir mint-repo
# create bare repository
cd mint-repo
git init --bare
cd hooks
vim post-update
#!/bin/sh
export GIT_WORK_TREE=../../path/to/your/live/files
git checkout -f
chmod ug+x hooks/*
git remote add staging username@server.com:your/path/to/repo
then when you want to push your commits to the bare repo:
git push staging
Thanks for being here!
- Aurooba Ahmed
@aurooba