Created
April 20, 2017 04:12
-
-
Save eellpp/c8d0c0134e5b35a11a105eca21b5e0fa to your computer and use it in GitHub Desktop.
How to push an existing project to github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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