Publish Code to Remote Repository
After setting up your SSH key and adding it to GitHub, you can push your code to a remote repo.
1. Create Local Repository
2. Check Remote URLs
3. Add Remote Repository
origin→ default name for the remote repo<remote-url>→ GitHub repository URL
Example:

4. Push Code to Remote
- Pushes local
masterbranch to remoteorigin

5. Set Upstream (Recommended)
- Sets
origin/masteras the upstream branch - Allows future use of:

6. Upstream Remote (Optional – for forks)
- Used to sync with the original repository
Summary
origin→ your remote repoupstream→ original source repo-u→ link local branch with remote branch