← Git & GitHub learning pathGit & GitHub · Module 3 of 10
Working with GitHub remotes
Push and pull code with GitHub.
📖 Key ideas
- git clone URL copies a remote repo.
- git remote add origin URL links a local repo to GitHub.
- git push sends commits to the remote.
- git pull fetches and merges remote changes.
- Authenticate with SSH keys or a personal access token.
💡 Real-life example: Push is posting your letters to the shared mailbox; pull is collecting the latest letters.
RemoteOnline copy of a repo
originDefault name for the main remote
git pushUploads commits
git pullDownloads and merges changes