Friday, May 20, 2011

Some Github instructions

I was playing with Github today and just wanted to keep the useful instructions.
Global setup:
Download and install Git
git config --global "Your Name"
git config --global {username}

Next steps:
mkdir projectname
cd projectname
git init
git remote add origin{username}/{RepositoryName}.git

Commit and push to Github
git add -A
git commit -am "message"
git push origin master

To get the latest version from Github to your local:
git pull origin master

to simply download a repository as a ZIP file: add the extra path '/zipball/master/' to the end of the repository URL and it gives you a zip file to download.


Post a Comment