Git fetch download the commit from the remote repository, but it won’t affect/ switch the local branch

git fetch

git fetch —all