Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLuiz Fernando Bojikian da Costa Vital
7,193 PointsInstalling Git in Visual Studio Code
Hello guys!
I'm trying to use Git in Visual Studio Code. I downloaded Git and installed it, but VSC won't find it. I'm trying to edit the "git.path" line in the settings but I'm stuck there, don't know how to do it.
I'm trying to change this line of code:
"git.path": null,
to:
"git.path": /usr/local/git,
Can anyone help please?
I'm using a Mac OSX 10.12.6, Visual Studio Code 1.19, and Git 12.5.
1 Answer
Amber Cyr
19,699 Pointsyou will need to change '/usr/local/git' to the path of where git was installed on your local machine. On a mac, find the git folder and right click it. choose 'Get Info' and copy the text under 'Where:' in the pop-up box. This is the path to the git folder you need to point visual studio to.
Luiz Fernando Bojikian da Costa Vital
7,193 PointsLuiz Fernando Bojikian da Costa Vital
7,193 PointsHi Amber, thanks for your help, I finally sorted it out. And sorry for taking so long to reply. I work in a cruise ship and some times I go for long time without internet.