In my case branch was there because in my new repo's default branch is not master, it is main, but I tried to checkout to master instead of main :) . So just cross-check the branch weather you have it on your local or not.