pull without checkout git site:stackoverflow.com code example
Example: git pull without checkout
# updates local master with changes from remote
git fetch origin master:master
# updates local master with changes from remote
git fetch origin master:master