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
For me I had a typo and my remote branch didn't exist
Use git branch -a to list remote branches
git branch -a