Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- To add a repo
- Create Repo on GitHub site
- Git instructions:
- cd into directory with source
- $ git init
- $ touch README
- fill in README file
- $ git add README
- $ git commit -m 'first commit'
- $ git remote add origin git@github.com:<Username>/<Name of repo on site>/.git
- $ git push -u origin master
- README is now in repo on GitHub site
- $ git add *
- $ git commint -m 'first commit'
- $ git push -u origin master
- All project files are now in repo on GitHub site
- To clone a repo (after a fresh install of Git or OS):
- Git instructions:
- cd into directory for projects
- $ git clone git://github.com/<Username>/<Name of repo on site>.git
- To get the latest version of the repo
- Git instructions:
- cd into directory with source
- $ git pull https://github.com/<Username>/<NameofRepo>.git
- To push the latest version of the source code:
- Git instructions:
- cd into the directory
- $ git add *
- $ git commit -m 'message for commit'
- $ git push -u origin master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement