2011-11-26

1-minute Git tutorial/cheatsheet

by Forrest Sheng Bao http://fsbao.net

I assume that you have already had a Git repository somewhere, like Git hub.

I also assume that you have web authentication set up properly, like this

Get a clone:
git clone git@github.com:ACCOUNT/REPOSITORY.git 

Update changes:
git add FILE
git commit -m 'this is a change...'
git push origin master

Remove a file from repository:
git rm FILE
git commit -m 'something is removed'
git push origin master

References: http://help.github.com/

No comments: