Saturday, August 9, 2008

git from the beginning

I have some code that was not under version control and figured it was time to get it covered by something so I went with git. The setup is butt simple. Observe:

$ mkdir crime-reporter
$ cd crime-reporter
$ git init
$ cp ../crimeparser/* .
$ git-add .
$ git-commit

And now I'm ready to branch off. I think you can even skip the mkdir step and use the current working directory if you want, but I wanted to create a new directory structure anyway. This is incidentally a new git repository to house my crime parser and eventually Hyattsville Crime Map code.

0 comments: