Get a “git command not found” error on mac though .profile file is updated

I have read this thread when I got the the
git: command not found (on OS X 10.5)

which basically said to update ~/.profile file with this phrase:

  • What is the difference between “git whatchanged — filename” and “git rev-list — filename”
  • Remove file conflicts in git
  • How much of a git sha is *generally* considered necessary to uniquely identify a change in a given codebase?
  • Clearcase to Git migration issues
  • Git cannot find branch in my local project
  • Visual Studio 2015 Source Control System
  • export PATH=$PATH:/usr/local/git/bin

    I did that and it didn’t work. but if I just write this code in the terminal the “git” command did work – but only until I have closed the terminal – then I need to retype this code whenever I want git to work.

    My suspicious is that I have another “.profile” file somewhere in my mac and that the file I have updated is irrelevant (since it didn’t work).

    Is that the case and if so – how do I find this file?

  • Git - multiple repositories?
  • Git - different commits each, respectively. (use “git pull” to merge the remote branch into yours)
  • How to fork my own repo into a new project?
  • Are git emails of authors in commits publicly readable?
  • Setting up a SVN repo through HTTPD server
  • How to config socks5 proxy on Git
  • One Solution collect form web for “Get a “git command not found” error on mac though .profile file is updated”

    Add this line to your ~/.bash_profile file:

    source ~/.profile

    This excellent super user answer explains why:
    Difference between .bashrc and .bash_profile

    Git Baby is a git and github fan, let's start git clone.