Skip to content

Instantly share code, notes, and snippets.

@nizaroni
Created June 17, 2015 00:57
Show Gist options
  • Save nizaroni/1523bed133195e11db37 to your computer and use it in GitHub Desktop.
Save nizaroni/1523bed133195e11db37 to your computer and use it in GitHub Desktop.
Instructions for pushing your code to GitHub.

Pushing to GitHub

Starting a new project

  1. Create the repo on GitHub.
  2. Check the README box.
  3. Copy the URL of the repo.
  4. Run git clone <URL> in your terminal (be careful, it creates a new folder).
  5. cd into the folder created by the previous step.
  6. Do the Git loop:
  • make changes
  • git add
  • git commit
  • git push
  • make changes again

Pushing an existing project

  1. Create repo on GitHub
  2. Don't check the README box.
  3. Copy the URL of the repo.
  4. Run git remote add origin <URL> in your terminal.
  5. Run git push --set-upstream origin master in your terminal.
  6. Do the Git loop:
  • make changes
  • git add
  • git commit
  • git push
  • make changes again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment