Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.5k views
in Technique[技术] by (71.8m points)

I can't find the git icon on VS Code Source Control window and initialize repository option is hidden

On my VS code there is no git icon on the Source Control window. There is initialize repository button but it is hidden. I've added a screenshot also if anyone can help me with the issue.

VS Code screenshot


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This might be related to the message below "Initialize Repository"

A valid git installation was not detected, more details can be found in the git output.

So make sure VSCode is launched from a session where git is in the %PATH%/$PATH.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...