Skip to content

Instantly share code, notes, and snippets.

@DerekK19
Created August 24, 2013 03:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DerekK19/6325859 to your computer and use it in GitHub Desktop.
Save DerekK19/6325859 to your computer and use it in GitHub Desktop.
Add existing repo to Github
# Create a repo on github. Assume it's called "MyRepo" and your git username is "gitUser"
# set up the current foder to be a git repo
git init
git add .
git commit -m 'Initial commit'
git remote add origin https://github.com/gitUser/MyRepo.git
git pull origin master
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment