← Git & GitHub learning path
Git & GitHub · Module 3 of 10

Working with GitHub remotes

Push and pull code with GitHub.

📖 Key ideas

  1. git clone URL copies a remote repo.
  2. git remote add origin URL links a local repo to GitHub.
  3. git push sends commits to the remote.
  4. git pull fetches and merges remote changes.
  5. 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