git - Trouble pushing to Github, cannot spawn sh: No such file or directory -
i'm having difficult time pushing github..i have repository had cloned, , have made changes i'd push github.
while in repository, following:
git add *
which seems work no response, when do:
git commit -m "test"
i response:
on branch will_branch nothing commit, working directory clean
which expect problem starts.
when do:
git push origin master git push origin my_branch
i error:
cannot spawn sh: no such file or directory cannot spawn git: no such file or directory
i have gone through many guides no avail..thanks help.
this might happening due large number of tags in repo. check this google-group entry, this question , another google group entry.
basically, known issue msysgit
, users on google group suggest using ssh protocol instead workaround:
- uninstall git (this doesn't uninstall existing repositories or ssh keys you've generated)
- reinstall git @
c:\git
- open git bash
- run command:
export git_ssh=/c/git/bin/ssh.exe
also, commit response getting suggests nothing got committed, git log
check if commit happened.
another reason, mentioned in msysgit
ticket presence of spaces in environment variables. moving installation of msysgit
etc c:
instead of c:\program files
may solve it.
Comments
Post a Comment