Global setup:
----------------------
Download and install Git
git config --global user.name "Your Name"
git config --global user.email {username}@yahoo.com
Next steps:
----------------------
mkdir projectname
cd projectname
git init
git remote add origin git@github.com:{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.
0 comments:
Post a Comment