My problem is related to Fatal Git error when switching branch.
I try to fetch a remote branch with the command
git checkout -b local-name origin/rem
Alternate syntax,
git fetch origin remote_branch_name:local_branch_name