Skip to content

Instantly share code, notes, and snippets.

@ianpaul
Last active March 24, 2017 18:29
Show Gist options
  • Save ianpaul/a14f9e5ebe1f28ce4854597403c9a0b8 to your computer and use it in GitHub Desktop.
Save ianpaul/a14f9e5ebe1f28ce4854597403c9a0b8 to your computer and use it in GitHub Desktop.
Add existing Git repo to GitHub
  1. Create and initalize a new repo on GitHub without a ReadMe, license, or .gitignore
  2. Navigate to your local Git repo from the command line and carry out the following commands:
  3. git remote add origin [GitHub URL]
  4. git remote -v--this just verifies that the GitHub repo URL is valid
  5. git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment