Skip to content

Session #4 Host your site on Github

Seth McLaughlin edited this page May 16, 2014 · 3 revisions

Git cheat sheet: http://gitref.org/


Major commands.

git clone

Copies a git repository from a remote source. Also adds the original location as a remote so you can fetch from it again and push to it if you have permissions.

git clone git@github.com:user/test.git

git add

Adds files changes in your working directory to your index.

git add .

git commit

Takes all of the changes written in the index, creates a new commit object pointing to it and sets the branch to point to that new commit.

git commit -m "committing added changes"

git push

Push code to GitHub

git push

Clone this wiki locally