microsoft / Git-Credential-Manager-for-Windows

Secure Git credential storage for Windows with support for Visual Studio Team Services, GitHub, and Bitbucket multi-factor authentication.
Other
2.87k stars 589 forks source link

Unable to login,fetch and push into git public repository from my git local computer. #889

Closed amit-kumar-dubey closed 4 years ago

amit-kumar-dubey commented 4 years ago

Which Version of GIT are you using ?

Which service are you trying to connect to

Expected behavior After pull the code from public repository, i am not able to push the code: Platform(Window 10)- Already uses these command for push : git push --set-upstream origin master, git push , git push origin master and git fetch etc.

What i have already tried:

Please help i stuck from last 2days. Thanks,

amit-kumar-dubey commented 4 years ago

Errors Logs: 13:05:37.218317 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin 13:05:37.231282 git.c:439 trace: built-in: git push --set-upstream origin master 13:05:37.245245 run-command.c:662 trace: run_command: GIT_DIR=.git git remote-https origin https://github.com/amit-kumar-dubey/gittest.git 13:05:37.772834 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core 13:05:37.783834 git.c:703 trace: exec: git-remote-https origin https://github.com/amit-kumar-dubey/gittest.git 13:05:37.783834 run-command.c:662 trace: run_command: git-remote-https origin https://github.com/amit-kumar-dubey/gittest.git 13:05:38.332338 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core 13:05:39.424391 run-command.c:662 trace: run_command: 'git credential-manager get' 13:05:40.513402 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core 13:05:40.524341 git.c:703 trace: exec: git-credential-manager get 13:05:40.524341 run-command.c:662 trace: run_command: git-credential-manager get 13:05:59.296724 run-command.c:662 trace: run_command: bash -c 'cat >/dev/tty && read -r line </dev/tty && echo "$line"' 13:06:07.799553 run-command.c:662 trace: run_command: bash -c 'cat >/dev/tty && read -r -s line </dev/tty && echo "$line" && echo >/dev/tty' 13:06:14.848888 run-command.c:662 trace: run_command: 'git credential-manager erase' 13:06:15.962687 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core 13:06:15.974655 git.c:703 trace: exec: git-credential-manager erase 13:06:15.974655 run-command.c:662 trace: run_command: git-credential-manager erase

dscho commented 4 years ago

That looks like something went wrong during those 19 seconds when GCM was open. But without version information and without GCM trace, it is impossible to say what.

amit-kumar-dubey commented 4 years ago

@dscho GIT version: Git-2.25.0-64-bit

amit-kumar-dubey commented 4 years ago

after setting ---set GIT_CURL_VERBOSE=1; here is the error logs : • 14:23:41.383168 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin • 14:23:41.405261 git.c:439 trace: built-in: git push --set-upstream origin master

• 14:23:41.426069 run-command.c:662 trace: run_command: GIT_DIR=.git git remote-https origin https://github.com/amit-kumar-dubey/gittest.git • 14:23:42.048737 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core • 14:23:42.073537 git.c:703 trace: exec: git-remote-https origin https://github.com/amit-kumar-dubey/gittest.git • 14:23:42.073537 run-command.c:662 trace: run_command: git-remote-https origin https://github.com/amit-kumar-dubey/gittest.git • 14:23:42.674808 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core • 14:23:43.599412 run-command.c:662 trace: run_command: 'git credential-manager get' • 14:23:44.762310 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core • 14:23:44.780584 git.c:703 trace: exec: git-credential-manager get • 14:23:44.780584 run-command.c:662 trace: run_command: git-credential-manager get • 14:24:00.901111 run-command.c:662 trace: run_command: bash -c 'cat >/dev/tty && read -r line </dev/tty && echo "$line"' • 14:24:53.961098 run-command.c:662 trace: run_command: bash -c 'cat >/dev/tty && read -r -s line </dev/tty && echo "$line" && echo >/dev/tty' • 14:25:03.674270 run-command.c:662 trace: run_command: 'git credential-manager erase' • 14:25:04.863639 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core • 14:25:04.884934 git.c:703 trace: exec: git-credential-manager erase • 14:25:04.884934 run-command.c:662 trace: run_command: git-credential-manager erase

dscho commented 4 years ago

How about setting GCM_TRACE?

amit-kumar-dubey commented 4 years ago

@dscho yes i did that GCM_TRACE=1

dscho commented 4 years ago

And? Do you see anything from GCM? (I'm on a phone, so I cannot analyze the logs)

amit-kumar-dubey commented 4 years ago

@dscho no logs looks the same.

amit-kumar-dubey commented 4 years ago

I have resolved this issue only after adding the ssh key and using ssh git url and commands. but not dit not find the solution for https.