Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8819455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:21:48+00:00 2026-06-14T05:21:48+00:00

I installed Git 1.7.7.4 by homebrew, but Apple integrated Git into Xcode since version

  • 0

I installed Git 1.7.7.4 by homebrew, but Apple integrated Git into Xcode since version 4.
So in my computer, the default Git version is 1.7.5.4 which it’s built-in Xcode 4.

I wonder if there’s a way that let me use new version by default and would impact Xcode?

I tried add the path to $PATH:

export PATH=/usr/local/Cellar:$PATH

BTW, I’m using zsh.

Updated:
Thanks for @birryree’s help, I’m using a wrong path, it should be /usr/local/bin, because of homebrew will use /usr/local/Cellar for storage, and use symlink to make sure all the packages are available on /usr/local/bin.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:21:50+00:00Added an answer on June 14, 2026 at 5:21 am

    According to my experience with my problems, have a check at 10449374 and 13177203, this will help you:

    1. change into the Xcode directory:

      cd /Applications/Xcode.app/Contents/Developer/usr/bin

    2. rename the Xcode’s git like this:

      sudo mv ./git ./git-xcode-usr-bin

    3. link my own git which is installed through homebrew:

      sudo ln -s /usr/local/bin/git ./git

    And you should do the same thing with /usr/bin/git:

    sudo mv /usr/bin/git /usr/bin/git-xcode-usr-bin
    sudo ln -s /usr/local/bin/git /usr/bin/git
    

    This will acctually link /usr/local/Cellar/git/1.8.0/bin/git (because I’m use git 1.8.0 at the present)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to install git with homebrew. I had MacPorts installed, which I removed
I've installed XCode and therefore git is there as well. Since i want to
macbook air bought yesterday. Installed homebrew, xcode, rails, git, cloned out my project fine.
I have installed git and svn with homebrew on my mac running 10.7.4. There
I'm running git 1.7 on Mac OSX, installed via Homebrew. I'm trying to use
Hi I just installed git cygwin on my windows pc at work, but somehow
I installed GitHub on mac but I don't have installed git on terminal. When
I have installed GIT 1.7.7.1 via homebrew and had to do a sudo brew
I have OS X Lion, and it comes with Git version 1.7.7.5 (Apple Git-26).
I am using Mac OS X 10.7.2 with Git 1.7.8.2 installed using Homebrew, cvsps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.