There is an English article explaining how deploy is done with Git
English article , version in Portuguese edited Translated and Edited
Article Excerpt:
Local repository
If you already have a local repository, skip to the next step.
It all starts with creating a simple Git repository:
Tools used in the process:
$ mkdir website && cd website
$ git init
Initialized empty Git repository in /home/thiagobelem/website/.git/
$ echo 'Olá, mundo!' > index.html
$ git add index.html
$ git commit -q -m "Iniciando o repositório"
Now that your local repository is ready, index.html has been created and the first commit done, we will create the remote repository in the production environment (server where the site is / will run).
Remote Repository
Assuming that your site will run on a server that you have SSH access made easy, we will create the repository there which will be a copy of the local server:
$ mkdir website.git && cd website.git
$ git init --bare
Initialized empty Git repository in /home/thiagobelem/website.git/
Now let's start creating the git-hook that will be responsible for copying all files - from the bare repository - to the folder where the site will run in the production environment:
$ cat > hooks/post-receive
#!/bin/sh
GIT_WORK_TREE=/var/www/meusite.com.br git checkout -f
$ chmod +x hooks/post-receive
See that we first set the GIT_WORK_TREE environment variable as the root of the site and then run a git checkout -f that will move the files without any trace from your Git repository.
Now just go back to your machine and add the remote repository:
$ git remote add web ssh://meusite.com.br/home/thiagobelem/website.git
$ git push web +master:refs/heads/master
Updating the files
As you work on the site and want to update the server in the air, you just run the command (after doing the commit):
git push web
As the focus has shifted to jenkins, I'll leave some links to the PHP Using PHP Tutorials as a complement.
Git
Deployer
Heroku