79614297

Date: 2025-05-09 14:14:16
Score: 0.5
Natty:
Report link

$git pull origin your-branch is a shorcut which runs two commands one after another:

  1. $git fetch origin your-branch
  2. $git merge origin your-branch

So:

So, if you're checked out on a different branch in your workspace (your-other-branch) and you run $git pull origin your-branch, it'll update your-branch on your local repository, then it'll merge your-branch from the local repository into your-other-branch in your workspace.

tdlr; run $git switch/checkout your-branch before running $git pull origin your-branch.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): is a
  • Low reputation (1):
Posted by: Kuchengeschmack