'error "fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree"?

I tried running the command 'flutter' in cmd. I am getting this error please resolve it.

fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source