I have cloned my GitHub repository and checked out an existing branch then did a git fetch and made some changes to the files in VS Code, committed the changes then pushed the changes to the remote branch. I am confused though about what happened when I fetched from the branch. It looks like the files in VS Code were updated to match the files on GitHub, but the Git documentation states that it doesn’t apply any of the remote changes to your local files until you use get pull. What is being updated in VS Code?
I don’t know how VS Code works but the difference is that
git pull is an alias for
git fetch && git merge.