🌐 Remote Repository Setup
- Create a new repo on GitHub.
- Leave it empty if you already have files locally (no README/license).
- Link local repo to remote:
git remote add origin https://github.com/your-username/repo-name.git💡 Alternative (SSH):
git remote add origin git@github.com:your-username/repo-name.git - Verify the remote link:
git remote -v - Push for the first time:
git push -u origin main📌 The
-uflag setsorigin mainas the default for futuregit push/git pull.