💾 Archived View for warpengineer.space › entries › push_existing_project_into_github.gemini captured on 2022-01-08 at 14:03:58. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
Push an Existing Project into GitHub
I always forget these steps so noting them here. This does assume that an empty repo is first created on GitHub.
- git init # initialize directory to be a new git repo
- git add . # add files
- git commit -m "Initial Commit" # commit the files
- git remote add origin <project url> # add the GitHub repo as the remote
- git remote -v # verify addition
- git push origin master # push commit to master branch on GitHub