문제

I am using msysgit client, I am able to fetch,push but when I try to pull it shows

git: 'pull' is not a git command. See 'git --help'.

I tried for git --exec-path and it gives C:\git-client/libexec/git-core, this path exists but still I am not able to pull. Any idea?

도움이 되었습니까?

해결책

As stated in comment above: git pull is (usually) shorthand for doing a fetch then merge.

Check that git fetch works first.

Further later research shows that this may be a bug in a specific version of msysgit, https://code.google.com/p/msysgit/issues/detail?id=249 So try upgrading that also (always prudent advice).

Additionally, a few googles for "git: 'pull' is not a git command" turned up quite a few choices on various fixes, based on which platform you are working on, but most turned out to be a missing path to git-core, so also check those out.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top