Skip to content

Instantly share code, notes, and snippets.

@eellpp
Created April 20, 2017 04:12
Show Gist options
  • Save eellpp/c8d0c0134e5b35a11a105eca21b5e0fa to your computer and use it in GitHub Desktop.
Save eellpp/c8d0c0134e5b35a11a105eca21b5e0fa to your computer and use it in GitHub Desktop.
How to push an existing project to github
# create the repo at github
# get the project url by clicking on clone or download
git init
git add .
git commit -m "Initial commit"
git remote add origin <project url>
git push -f origin master
## set this up, to just do git push later
git push --set-upstream origin master
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment