Thursday, October 3, 2013

Git it!


A reminder for me about pushing to github.  I'm sure this will become something i'll have memorized shortly, but i've already looked this up a couple times in the video from the precourse materials.  Now that it's posted here it will be much easier to get to.

Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:jheaden/tealeaf.git
git push -u origin master

Push an existing repository from the command line

git remote add origin git@github.com:jheaden/tealeaf.git
git push -u origin master

No comments:

Post a Comment