Git

From Tim's Wiki
Jump to: navigation, search

Add new repo

On server:

git --bare init project.git

On local:

cd project
git init
git add -A
git commit -a
git remote add --tags --track master origin example.com:/path/to/project.git
git push origin master

Now you can push/pull the remote repo with git push and git pull.