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

12,306

Can you confirm that git-core is in the correct place?

iMac:~ david$ git --exec-path
/usr/local/git/libexec/git-core
iMac:~ david$ ls /usr/local/git/libexec/
git-core
iMac:~ david$
Share:
12,306
James Raitsev
Author by

James Raitsev

I ask a lot of questions. Some of them are good.

Updated on June 15, 2022

Comments

  • James Raitsev
    James Raitsev almost 2 years

    Possible Duplicate:
    “git pull” broken

    Using git version 1.7.5.4 on my MAC

    When trying to pull from remote, i am getting the

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

    This used to work. Something changed on my system, not sure what.

    How can this be resolved please? What might be the problem here?

    • Wooble
      Wooble over 11 years
      We sure don't know better than you what you did to your machine. Try reinstalling git?
    • ppeterka
      ppeterka over 11 years
      Did you look at this?
  • James Raitsev
    James Raitsev over 11 years
    I have /usr/libexec/git-core coming back, following by ls: /usr/libexec/git-core: No such file or directory. Where could my path have been screwed up? I am using oh-my-zsh with plugins=(git) entry. This change is the only one i can think of
  • Rawkode
    Rawkode over 11 years
    Do you have the same directory as me per chance? You could always create a symlink to fix the discrepancy or create a git alias that sets --exec-path.
  • James Raitsev
    James Raitsev over 11 years
    I searched for the git-core and added it to path. All is ok now. Not sure what happened. Thanks man
  • michael
    michael about 10 years
    For details on this issue, see the "possible duplicate", stackoverflow.com/questions/1465398/git-pull-broken