Steps to take to add a project named ‘test’:
Usefull to start with:
git config --global user.name "Olivier Van Acker"git config --global user.email cyberroadie_@_gmail.com Or add this info under [user] in .gitconfig file in your home directory like this:[user] name = Olivier Van Acker email = cyberroadie_@_gmail.com Creating and adding the project:
- Locally: mkdir test
- cd test
- Add/create source files
- git init
- git add .
- git commit -m “Initial import of test project”
- ssh cyberroadie@www.cyberroadie.org
- cd /var/git/
- mkdir test.git
- GIT_DIR=test.git git-init-db
- touch test.git/git-daemon-export-ok
- vi test.git/descripton
- chmod +x test.git/hooks/post-update
(http://www.kernel.org/pub/software/scm/git/docs/hooks.html)
- Locally to push all your branches:
git push --force --all ssh://www.cyberroadie.org/var/git/test.git
Based on the GIT cheat sheet: http://www.gnome.org/~federico/misc/git-cheat-sheet.txt