$ git ls-remote
results in
fatal: No remote configured to list refs from.
I have remotes defined
$ git remote
results in
personal_remote
upstream
On
If using git from VS Developer Command Prompt, it helps to change directory to the root of the git repository, i.e. the folder that contains the .git folder.
Running the git ls-remote command from there will pick up the remote repository from the directory.
I can get this behavior in repos that have no
originremote. You can supply an alternate default remote name by settingremote.pushDefault.