Add Local Repo to GitHub
In the local directory containing the code run:
git init -b main
git add .
git commit -m "Initial commit"
Then sign into GitHub and create a repo with name <REPO NAME>. Do not include a README or LICENSE file. Get the URL:
https://github.com/nicholishiell/<REPO NAME>
Add GitHub as remote location:
git remote add origin https://github.com/nicholishiell/rcsdb.git
Then push local code to remote:
git push -u origin main
Comments
Post a Comment