简体   繁体   中英

Terminal is stuck after git push

After I've pushed my code the terminal is stuck and only a blank line is displayed. It doesn't show any error. When I try to close terminal it shows processes are running. I don't know what happens. This is the third time I've pushed my code. It just worked at previews times. Everything has been set at first time push.

在此处输入图片说明

Try running git in verbose mode. run git push -v to have an idea of what's happening in your terminal.

Check the following possible options:

  • $ git remote show origin

    If it shows the URL as git:// , try pushing to git using http:// . Might be the case that the router is blocking the port.

  • Check your SSH config ( ~/.ssh/config )

  • See if your origin is directed to the correct URL ( git remote -v ) and that you have write access. Command: git gc

  • Might be an issue with the Repo Hosting provider.

  • Try this:

    git config --global core.askpass "git-gui--askpass"

    The prompt may ask for login credentials. If there is any error, check git-gui--askpass: No such file or directory .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM