Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is git not working in Visual Studio Code?

I have installed husky in my project. Then I ran the precommit command. Now, when I run the git command, it is not working and it's instead asking me how do you want to open the file. So, I removed husky using npm prune and then removed the hooks folder from /.git of the project directory, but still didn't help. I am using Windows 10.

like image 580
vihang shah Avatar asked Apr 13 '26 22:04

vihang shah


1 Answers

First, in the built-in terminal, type: git --version.

If that command does not work, download and install the latest version of Git. Else, in VS Code's extensions, in the search bar type: @builtin. This will list all the built-in extensions in VS Code categorized under different sections. In the 'Features' section look for Git extension. Check if it is disabled. Enable it and your version control should start working.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!