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
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
Working now
The solution was to manually run git push
from the terminal. Thereafter, git integration in VSCode works.
I had a similar issue, After closing the COMMIT_EDITMSG window it was committed.
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.
I had the same problem. I've decided to commit from terminal. The command git add --all
added my new files. After this, icon 'Commit' started work correctly. (But you can also type git commit
by yourself).
I hope, It'll help somebody
For me, this happens when I forget to enter a Commit Message. VSCode then opens the COMMIT_EDITMSG file for editing. Entering a message, saving the file, and clicking the checkmark (highlighted in green) resolves this for me.
ssh-keygen -t rsa -b 4096 -C "[email protected]"
Add your public key to your Git account.
xclip -sel clip < ~/.ssh/id_rsa.pub
- Go to your Git account settings and click on “SSH and GPG keys”.
- Click on “New SSH key” or “Add SSH key”.
- Paste your public key into the “Key” field and click on “Add SSH key”.
git remote set-url origin [email protected]:username/repo.git
ssh -T [email protected]
.git push
.hope this helps
I had the same issue when I was doing COMMIT
, and it was an endless process. The solution is always to put a message on the top of the commit before committing.
© 2022 - 2024 — McMap. All rights reserved.