Play-by-Play: Initial Git

June 3, 2010 by Craig

Time to set up a GitHub project. Github is, at the very least, a good offsite storage system for the source code.

cd "/Users/craig/Documents/SoftCraft/projects/bakery/"
mkdir rails
cd rails
touch README
touch .gitignore
gitx
git add .
git commit -a -m "Initial commit"
git remote add origin git@github.com:softcraft-development/bakery.git
git push origin master

And we’re in business!

Update .git/config with a couple of nice features:

[alias]
  undo = reset --hard HEAD
  wipe = clean -f -d

While I’m at it, I’ll update my copy of git too.


No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment