Category Archives: Git

GIT clone and private SSL certificates

To allow GIT to use SSL connections with a private certificte env GIT_SSL_NO_VERIFY=true git clone https://www.example.com/private…

Posted in Git | Leave a comment

GIT ignore file for xcode4 projects

My current GIT ignore file for xcode4 projects   .DS_Store *.swp *~.nib build/ *.pbxuser *.perspective *.perspectivev3 *.xcodeproj/xcuserdata/* *.xcodeproj/project.xcworkspace/xcuserdata/*

Posted in Git | Tagged , | Leave a comment

GIT ignore file for Symfony2

My current GIT ignore file for symfony2 projects: # symfony files .DS_Store vendor/* app/cache/* app/logs/* *~   # config files to ignore app/config/parameters.ini   # eclipse PDT files .buildpath .project .settings

Posted in Git | 1 Comment

Using GIT’s exclude file to include certain files ONLY

You can turn the .git/info/exclude on its head to only include certain files / directories. Start by excluding everything, then negating the succeeding rules. * !foo.* !bar

Posted in Git | Leave a comment

Email notification on a git push with a post-recieve hook

In your git config file add the following [hooks] mailinglist = user@domain.com and in the hooks/post-receive file: . /usr/share/doc/git-core/contrib/hooks/post-receive-email (for Ubuntu 9.10)

Posted in Git | Tagged | Leave a comment

Using Git and a post-receive hook script for auto deployment

Set up a remote Git repositiory to automatically checkout to a working tree after a git push command. Useful for the auto deployment of web site files on a web server. Create a bare GIT repository: mkdir project.git && cd project.git git init –bare Create a detached work tree: mkdir /home/user/myproject git config core.worktree /home/user/myproject [...]

Posted in Git | Tagged , | 4 Comments

Git exclude file for Symfony Projects with Eclipse

This is my general Git exclude file for Symfony projects developed with Eclipse. .DS_Store /cache/* /log/* /.settings /.project /.buildpath

Also posted in Symfony | Tagged , , | Leave a comment

Git push and pull with remote repository

Quick list of the Git commands. On the remote server: $ mkdir /home/scm/app.git $ cd /home/scm/app.git $ git –bare init On your local Git repository: $ git remote add origin ssh://domain.com/home/git/app.git $ git push origin master Useful commands: git config –add hooks.mailinglist "mail@domain.org"

Posted in Git | Tagged | Leave a comment