3

VSCode Version: 1.63

OS: Mac Monterey

I'm missing the option to clone repository. I have another Mac where it shows just fine.

I checked settings and Git is missing under Extensions but I'm unsure how to get it back.

Explorer in VSCode

Things I've tried:

  • Shift+Ctrl+P Git:Clone (doesn't exist)
  • Ensuring git and python are installed (they are)
  • Verified that Github: Git Auth is enabled under Preferences (it is)
  • Uninstalling/reinstalling (no change)
  • Rebooted machine (no change)
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
AnaBee
  • 31
  • 1
  • 1
  • 3

1 Answers1

1

Assuming you are launching VSCode from a shell where git is recognized/installed, check first, as in here, it is not a license issue.

See "microsoft/vscode issue 81287": xcodebuild license needs renewing.


The OP AnaBee reports making it work after a git init, and following "Git missing in VS Code – No source control providers":

Open Visual Studio Code, click left-bottom ⚙️ (gears) and select Command Palette.

Search for the word "enable", and select Enable All Extensions.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • When I try to execute `sudo xcodebuild -license` I get the message `xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance` I followed the steps in the same thread to no avail. – AnaBee Jan 27 '22 at 20:37
  • @AnaBee Since Git is missing under extension, do you see "There are no active source control providers", as in https://stackoverflow.com/q/46609255/6309"? – VonC Jan 27 '22 at 21:07
  • Yes. I have already tried: `which git` to get my git path. Then updated the settings.json file. Still no luck. Actually in the settings file, that specific line is faded out when I go back to look at it. (not commented out; faded out. like inactive) – AnaBee Jan 27 '22 at 22:47
  • I got it to work!! I did the following: `git init` and https://stackoverflow.com/a/60464541/18050700 – AnaBee Jan 27 '22 at 23:08
  • @AnaBee Great! Well done, and good catch. I have edited the answer accordingly. – VonC Jan 27 '22 at 23:35