Trouble pushing to Github, cannot spawn sh: No such file or directory

后端 未结 6 1353
陌清茗
陌清茗 2021-01-19 01:59

I\'m having a difficult time pushing to Github..I have a repository that I had cloned, and I have made changes to it that I\'d like to push back to github.

While in

6条回答
  •  隐瞒了意图╮
    2021-01-19 02:18

    This might be happening due to a large number of tags in your repo. Check this google-group entry, this question and another google group entry.

    Basically, this is a known issue with msysgit and users on google group suggest using the ssh protocol instead as workaround:

    1. Uninstall Git (this doesn't uninstall your existing repositories or SSH keys you've generated)
    2. Reinstall git at C:\Git
    3. Open git bash
    4. run this command: export GIT_SSH=/c/Git/bin/ssh.exe

    Also, the commit response you are getting suggests nothing got committed, do a git log to check if the commit actually happened.


    Another reason, as mentioned in this msysgit ticket could be the presence of spaces in your Environment variables. Moving the installation of msysgit etc to C: instead of C:\Program Files may solve it.

提交回复
热议问题