Search code examples
gitgithubgit-for-windows

Git fatal: ArgumentNullException encountered


I'm receiving the following error trying to push to the Github repo. I'm working on windows, repo is on GitHub.

Looks like some problem with the Credentials Manager, because after the error message, credentials is being requested again, and I can push my changes anyway, but the error is really annoying.

I know that GitHub no longer support TLS 1.0 and 1.1, only 1.2, that's why I updated to last version Git for Windows:

git --version
git version 2.17.0.windows.1

However it does not help much

UPDATE: Detailed STR

git commit --all -m"#ISSUE-123 Rename example dirs; added command-line handlers"
22 files changed, 501 insertions(+), 7 deletions(-)
git push https://<my_username>@github.com/<my_repo>.git #ISSUE-123
fatal: ArgumentNullException encountered.
Value cannot be null.
Parameter name: path

Of course, path and username are 100% correct


Solution

  • I solved the issue, looks like hard-to-reproduce problem with Git Credential Manager. First, I reinstalled Git and de-selected "Git Credential Manager for Windows" checkbox. Then I installed Credential Manager separately from the Git page. Everything works fine now. Hope will be fixed in the next version for Windows