andy-5 / wslgit

Use Git installed in Bash on Windows/Windows Subsystem for Linux (WSL) from Windows and Visual Studio Code (VSCode)
MIT License
1.18k stars 59 forks source link

git push stuck on jetbrains #128

Closed xiaozhuai closed 2 years ago

xiaozhuai commented 2 years ago

image

andy-5 commented 2 years ago

One possible reason for this could be that Git is asking for a password or SSH key. Does git push on the command line require any user input?

xiaozhuai commented 2 years ago

One possible reason for this could be that Git is asking for a password or SSH key. Does git push on the command line require any user input?

No, I've set this git config --global credential.helper store. And the password is stored.

andy-5 commented 2 years ago

Ok. Is there any kind of log or list of commands that CLion is executing? Otherwise you could enable logging by setting the Windows environment variable WSLGIT_ENABLE_LOGGING=1. The log file should then be stored in the same directory as wslgit.exe.

Also, git push is one of the commands that runs in an interactive Bash shell by default (bash -i, which can have different behaviour from non-interactive shells). Does your shell maybe print out any additional text in interactive mode?

xiaozhuai commented 2 years ago

Ok. Is there any kind of log or list of commands that CLion is executing? Otherwise you could enable logging by setting the Windows environment variable WSLGIT_ENABLE_LOGGING=1. The log file should then be stored in the same directory as wslgit.exe.

Also, git push is one of the commands that runs in an interactive Bash shell by default (bash -i, which can have different behaviour from non-interactive shells). Does your shell maybe print out any additional text in interactive mode?

Thanks! I will try to enable logging to see what happened.

xiaozhuai commented 2 years ago

@andy-5 Problem solved! Need switch on Use credential helper. Thanks!

image

andy-5 commented 2 years ago

Great! Thanks for sharing your solution.