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 9079757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:54:42+00:00 2026-06-16T19:54:42+00:00

Git used to work fine on my Mac OS X. Today i found it

  • 0

Git used to work fine on my Mac OS X. Today i found it not working:

$ git
-bash: git: command not found

I installed previously with Macports. Now if i try again, the following happens:

$ sudo port install git-core
Portfile changed since last build; discarding previous state.
--->  Computing dependencies for git-core
--->  Fetching archive for git-core
--->  Attempting to fetch git-core-1.8.0.2_0+credential_osxkeychain+doc+pcre+python27.darwin_10.x86_64.tbz2 from http://packages.macports.org/git-core
--->  Attempting to fetch git-core-1.8.0.2_0+credential_osxkeychain+doc+pcre+python27.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/git-core
--->  Attempting to fetch git-core-1.8.0.2_0+credential_osxkeychain+doc+pcre+python27.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/git-core
--->  Fetching distfiles for git-core
--->  Attempting to fetch git-1.8.0.2.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/git-core
--->  Attempting to fetch git-manpages-1.8.0.2.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/git-core
--->  Attempting to fetch git-htmldocs-1.8.0.2.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/git-core
--->  Verifying checksum(s) for git-core
--->  Extracting git-core
--->  Applying patches to git-core
--->  Configuring git-core
--->  Building git-core
--->  Staging git-core into destroot
--->  Installing git-core @1.8.0.2_0+credential_osxkeychain+doc+pcre+python27
--->  Activating git-core @1.8.0.2_0+credential_osxkeychain+doc+pcre+python27
Error: org.macports.activate for port git-core returned: Image error: /opt/local/libexec/git-core/git-subtree already exists and does not belong to a registered port.  Unable to activate port git-core. Use 'port -f activate git-core' to force the activation.
Please see the log file for port git-core for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-core/git-core/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port git-core failed
21:51 foouser@barhost:~$ sudo port -f activate git-core
--->  The following versions of git-core are currently installed:
--->      git-core @1.7.7.2_0+doc+pcre+python27
--->      git-core @1.7.7.4_0+doc+pcre+python27
--->      git-core @1.7.9_0+doc+pcre+python27
--->      git-core @1.7.9.2_0+doc+pcre+python27
--->      git-core @1.7.9.2_1+credential_osxkeychain+doc+pcre+python27
--->      git-core @1.7.9.4_0+credential_osxkeychain+doc+pcre+python27
--->      git-core @1.7.10_0+credential_osxkeychain+doc+pcre+python27
--->      git-core @1.7.11.3_0+credential_osxkeychain+doc+pcre+python27
--->      git-core @1.7.11.5_0+credential_osxkeychain+doc+pcre+python27
--->      git-core @1.7.12.2_0+credential_osxkeychain+doc+pcre+python27
--->      git-core @1.8.0.1_0+credential_osxkeychain+doc+pcre+python27
--->      git-core @1.8.0.2_0+credential_osxkeychain+doc+pcre+python27
Error: port activate failed: Registry error: Please specify the full version as recorded in the port registry.

It still is not working. How should i restore my beloved git?

  • 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-16T19:54:44+00:00Added an answer on June 16, 2026 at 7:54 pm

    The problem is that you have multiple git-core installed on your system. You need to be more precise on which you want to add. Otherwise activate a specific version.

    For example, you can do :

    sudo port install git-core @1.7.11.3_0+credential_osxkeychain+doc+pcre+python27
    

    to choose the version 1.7.11.3_0 with the mentioned variants.
    Or the last version by doing :

    sudo port install git-core @1.8.0.2_0+credential_osxkeychain+doc+pcre+python27
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently used git svn and enjoyed it very much. Now I'm starting a
I have a git repository I originally used with msysgit , but now I've
I was doing some work at home over the weekend and used git to
I used git 1.7.4 for working with large svn repo - it was ok.
I have a git repository on an OS X server that used to work
We have recently moved new version control GIT (earlier we used to work on
Situation I've never before used git or any other version control. Now I've got
I've used this Git setup for managing a website: http://toroid.org/ams/git-website-howto . Things work, until
I recently used git-svn to clone an SVN repository, for the purposes of maintaining
Upon coding, I realized I had made a mistake. I used git checkout 7e57dbf5a7245...

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.