Initialize local git repository

cd projectdir
git init
git add .
git commit -m "Initial commit"

Prepare for transferring to server

git clone projectdir projectdir.git --bare
cd projectdir.git
git --bare update-server-info
mv hooks/post-update.sample hooks/post-update
chmod a+x hooks/post-update

Now transfer the projectdir.git to the server

Meta

Created:

Updated: 12/15/2015 23:12