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:

  1. uninstall git (this doesn't uninstall existing repositories or ssh keys you've generated)
  2. reinstall git @ c:\git
  3. open git bash
  4. 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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -