简体   繁体   中英

Visual Studio Code in openSuse can't find Git

Steps followed:

  • Git is installed in /usr/bin/git , and
  • I've changed the git.path variable to " /usr/bin/git "

However: Visual Studio Code still can't find Git and activate source control.

I'm running OpenSuse Leap, fully up to date as of today 29/12/18.

The git.path setting should be:

/usr/bin/git

Not /usr/bin.git

Make sure /usr/bin/git is an executable file (not a folder)

Sorted it. It was working as expected, just needed to initialise a repository in a project folder to get VS Code to recognise source control was working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM