Skip to content

Instantly share code, notes, and snippets.

@stephenhardy
Created April 24, 2013 21:18
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stephenhardy/5455666 to your computer and use it in GitHub Desktop.
Save stephenhardy/5455666 to your computer and use it in GitHub Desktop.
Initial setup steps for a git and github project
-- Initial setup
mkdir <YOURPROJECT>
cd <YOURPROJECT>
git init
-- Link to GitHub hosted repos
git remote add origin <git@github.com:YOURACCOUNT/YOURREPO.git>
git pull origin master
-- Add some files
git add .
git commit -m "YOUR COMMENTS"
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment