git fetch vs git pull (vs git pull --rebase): Differences, Divergent Branches and When to Use Each (Tested Examples)
git fetch downloads new commits without touching your branch; git pull downloads them and then merges or rebases into your branch. Here is what each one really changes, why pull stops on divergent branches, and when to use --rebase, --ff-only and --autostash, with output from Git 2.47.3.