1

The message keeps saying uploading files "forever". What I did was created a folder with a file inside. On Github, the repository was created successfully but the file is not uploading. And yes I have installed git.

enter image description here

The repository created successfully but the files are not uploading.

enter image description here

Akm Kawser
  • 93
  • 1
  • 6

2 Answers2

1

If you have the latest Git for Windows, chances are you have a git config credential.helper set to manager-core.

As I mentioned in "After $git push -u origin main command, Git bash is not requesting any authentication literally does nothing", the same issue is seen in command-line, not just VSCode.

This is because of the Git-Credential-Manager-Core (interface to the Windows Credential Manager, in charge of caching your credentials: GitHub username/token).

Try and install the last GCM-Core (released yesterday), and see if the issue persists then.

Or, alternatively, you could use an SSH URL, again, to see if the issue persists.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Well i am getting a new error saying "You do not have permission to push to "myCreatedRepository" on Github. Would you like to create a fork and push to it instead.?" – Akm Kawser Jun 22 '21 at 08:35
  • 1
    @AkmKawser That is expected if the remote URL used points to a Git repository which is not on your account. Or if it is, but using cached credentials which are not correct. What credentials do you see when opening the Windows Credential Manager? (as seen n https://davemateer.com/2019/07/28/Multiple-Github-Logins#delete-current-cache-of-github-passwords for instance) – VonC Jun 22 '21 at 09:06
0

What fixed it for me: In VSCode: File -> Preferences -> Settings. Filter for "git". Select "git (80)" on the left pane. Uncheck this:

Git: Require Git User Config Controls whether to require explicit Git user configuration or allow Git to guess if missing

Mor Sagmon
  • 905
  • 1
  • 16
  • 35