Git An introduction to Git #32

Setting up a git repository

To create a new repository, use git init:

$ mkdir myproject
$ cd myproject
$ git init

That's it! The repository is now created locally, and you can start making commits.

To push the new repo to a (newly created) remote repository:

$ git remote add origin git@github.com:pmichaud/myproject.git
$ git push origin master
Copyright © 2009
http://www.pmichaud.com/2009/pres/