IT notes

Git Web Deployment Workflow

The idea behind is to push to a remote repository on the same web/service server and a post-receive hook will checkout the files to the public directory. Configuring the server Create the repository: $ cd $HOME $ mkdir my-site.git $ cd my-site.git $ git init --bare The idea of using .git as a suffix is just to distinguish between other directories. Crate the directory where you would like to deploy, for example: