Necrobious'

Tuesday, June 03, 2008

git on a server w/o git

I got stuck trying to share some code to a friend of mine via git, the web server does not currently have git installed. This probably isn't much of a problem to those who use git frequently, but if your new to git, it can be quite frustrating. Luckily, my friend came to the rescue with a great link to a git cheatsheet, with the essential bit as follows:


git clone --bare . /tmp/myproject.git
git --bare --git-dir=/tmp/myproject.git update-server-info
chmod +x /tmp/myproject.git/hooks/post-update
scp -r /tmp/myproject.git www.example.com:~/public_html/git/


Thanks Trevor for the find.

0 Comments:

Post a Comment



Links to this post:

Create a Link

<< Home