VSCode is stuck pushing content to my GitHub repo

Viewed 4520

When I try to push changes to my online repo, the sync icon on the left of the status bar doesn't stop rotating.

OS: Windows 10

VSCode ver: 1.58

2 Answers

Working now

The solution was to manually run git push from the terminal. Thereafter, git integration in VSCode works.

Visual Studio doesn't output Git remote error so, first of all, I would check if credentials/remote is correctly set.

Many VCS providers are switching from user/password to SSH keys and allowing read/write operations only with SSH keys the that repository gets switched. If this is the case, you would not even be able to switch branch or pull.

If this is your case, in Visual Studio go to Git/Manage Remotes and update the clone link.

Related