📖 Concepts
RemoteA version of your repository hosted on another server (or simulated locally). Your local repo can fetch from and push to remotes.
FetchDownloads new commits and branches from a remote WITHOUT merging them. Your local work is untouched.
Remote-tracking BranchA local reference (e.g., origin/main) that tracks what a branch looks like on the remote. Updated by git fetch.
PullFetches remote changes AND merges them into your current branch. A shortcut for git fetch + git merge.
View the current commit history
Notice you only have 2 commits locally. The remote has a fix you need.
● View the current commit history
○ Fetch from the remote
○ Check the remote tracking branch
○ Pull the remote changes