-1

I have created one new file in an otherwise empty directory using VS Code. I went to version control and chose initialising this directory as a git repository. Now, a blue strip is moving around and a blue clock sign appeared on the git icon.

What does it wait for? With command line, git init is a no-brainer and lasts for a fraction of a second.

4
  • Hi! Are you connecting over ssh? What's your OS? Could be a permissions issue. If you click on the 3 dots up top, you can toggle Show Git Output Commented Sep 23, 2020 at 16:45
  • Thanks, interestingly, it was not just git init VS Code tried but lots of other commands. And, it wanted a repository with a remote counterpart. When initing... Commented Sep 23, 2020 at 17:17
  • How would ssh latency be involved in a local operation like git init? Commented Sep 23, 2020 at 19:16
  • @eftshift0 None, I was trying to get info on the operations VS Code was trying to run in the background. When you connect over ssh in VS Code over to a Linux machine, VS Code sets up a server on the remote machine to run the plugins. Commented Sep 24, 2020 at 12:50

3 Answers 3

1

If you click on the 3 dots up top, you can toggle Show Git Output. It will give you information on what commands VS Code is running in the background.

Sign up to request clarification or add additional context in comments.

Comments

1

I had the same issue. Pressing "Initialize Repository" and nothing happens.

I think it's a problem with read/write rights of the project folder.

I am using Windows, but maybe it's also the same with Linux.

When creating a Laravel project with composer the issue occurs: hidden .git folder is created but nothing else happens.

When creating the project folder manually with file explorer and afterwards building the project with composer the issue is solved.

So my guess would be that composer messes up with folder creating somehow.

Comments

0

Had the same issue. Turned to be some Folder Permissions issues. Solved by changing the folder permissions to the currently logged in user (yourself) and restarting VS Code.

For a detailed explanation, I followed this guide: Initialize Repository Not Responding #148023

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.