I must have messed up something I have installed husky in my project. Then I ran precommit
command. Now when I run git command, it is not working and asking me how do you want to open the file, so I removed husky using npm prune
and then removed hooks folder from /.git
of project directory but still didn't help. I am using windows 10
I had the same problem of Git not working in VSCode. After reading some of the earlier posts with their answers of deleting and reinstalling Git and Github, I discovered that I had the Atom GitHub package installed from prior experiments. I deleted Atom and restarted VSCode and it now works with the Git repo. That's all it took.