Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top