The Geekess   Linux, bicycling, open source, gardening, amateur rockets, and other seemingly unrelated hobbies.

Now with even more Git!

I'm currently setting up my remote git repository for my blog. I have to setup a post-update script, so that changes to the remote repo will be reflected in the local checkout of my blog (which is on the same server, coincidentally). It's a bit of a hack, but PyBlosxom needs the actual files around somewhere on the server.

Here's my post-update script (where $blog is the directory of your local repository):

#!/bin/sh

cd $blog
unset GIT_DIR
git-fetch origin
git-reset --hard origin/master

Tags: , , | link | 0 comment(s)



Name:


E-mail:


URL:


Comment: