How to add /usr/local/bin in $PATH on Mac

When I do ‘open .profile‘ in the terminal I have the following:

export PATH=$PATH:/usr/local/git/bin 

Now I installed node.js for Mac and it says,

  • Jenkins Git Plugin not pulling latest changes before building job
  • Automate AssemblyFileVersion Incrementation using GIT
  • Version control system for game development with UDK?
  • Changing the Git remote 'push to' default
  • How to add private github repository as Composer dependency
  • Including submodules in git checkout to GIT_WORK_TREE in hook
  • Make sure that /usr/local/bin is in your $PATH.

    How can I add /usr/local/bin to export PATH=$PATH:/usr/local/git/bin?

  • Differences between git submodule and subtree
  • For home projects, can Mercurial or Git (or other DVCS) provide more advantages over Subversion?
  • What's the meaning of 'origin' in 'git push origin master'
  • can't push to branch after rebase
  • How to use .jar tool BFG Repo Cleaner and reduce git repository?
  • Is there a way to automatically merge notes if commits for those notes get squashed?
  • 3 Solutions collect form web for “How to add /usr/local/bin in $PATH on Mac”

    export PATH=$PATH:/usr/local/git/bin:/usr/local/bin
    

    One note: you don’t need quotation marks here because it’s on the right hand side of an assignment, but in general, and especially on Macs with their tradition of spacy pathnames, expansions like $PATH should be double-quoted as "$PATH".

    Try placing $PATH at the end.

    export PATH=/usr/local/git/bin:/usr/local/bin:$PATH
    

    I’ve had the same problem with you.

    cd to ../etc/
    then use ls to make sure your “paths” file is in ,
    vim paths, add “/usr/local/bin” at the end of the file.

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