I just got this same error and, for me, it meant that I did not have a local copy of that branch (tfmain/master). To fix it, I just checked out a local copy by running git checkout tfmain/master
tfmain/master
git checkout tfmain/master