Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm a git newbie and am having problems trying to get the latest version of a remote project:

S:devprjmyprj [master]> git pull
/usr/libexec/git-core/git-sh-setup: line 266: cd: .git: No such file or directory
Unable to determine absolute path of git directory

It was working fine until today and strangely I don't think I've changed anything since it last worked fine.

This is on Windows 7. My project is on an encrypted drive (S:) and git is on C:

S:devprjmyprj [master]> git --exec-path    
C:UsersmattAppDataLocalGitHubPortableGit_656cc1ef6d04f06ddf8b2f5bedbac921caed3b62/libexec/git-core

Manually doing a cd to the exec directory above works fine (even though there are mixed slash types).

Any ideas how to even start working out what has gone wrong?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.1k views
Welcome To Ask or Share your Answers For Others

1 Answer

Killing the ssh-agent.exe process works for me.
Note: It is called sh.exe in newer versions of SourceTree (thanks @cowlinator)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...