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 --barecd hooks
vim post-update#!/bin/sh
export GIT_WORK_TREE=../../path/to/your/live/files
git checkout -fchmod ug+x hooks/*git remote add staging username@server.com:your/path/to/repothen when you want to push your commits to the bare repo:
git push stagingThanks for being here!
- Aurooba Ahmed
@aurooba