I was facing issue with git in powershell so I uninstalled it and reinstall using this official post
after installing when I open through shortcut as mentioned in post it worked. but if I open normal powershell I ran git command it is considering git as a file and asking me how do you want to open it? I am not understanding what happened there?