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

  • Home
  • SEARCH
  • 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 6003365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:06:40+00:00 2026-05-23T01:06:40+00:00

I have a git repo I’ve been using for the last year on the

  • 0

I have a git repo I’ve been using for the last year on the same box. Today I run git status and get the error message:

fatal: Not a git repository (or any parent up to mount parent /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

I have a .git directory and it’s populated with the thousands of commits I have for that repo. I don’t want to re-initialize the repo in fear that it’ll overwrite the history. I also don’t really want to re-pull it from github as I’ve got a few changes stashed in branches that I haven’t pushed up to GH in a while.

edit:

I’m reasonably sure it’s not my environment. Other git repos are working just fine

  • 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-05-23T01:06:41+00:00Added an answer on May 23, 2026 at 1:06 am

    I would like to post some comments from the appropriate source file of git:

    Git repo discovery is done as per below:

    /*
     * Test in the following order (relative to the cwd):
     * - .git (file containing "gitdir: <path>")
     * - .git/
     * - ./ (bare)
     * - ../.git
     * - ../.git/
     * - ../ (bare)
     * - ../../.git/
     *   etc.
     */
    

    And it ascertains that it is a git repo as below:

    /*
     * Test if it looks like we're at a git directory.
     * We want to see:
     *
     *  - either an objects/ directory _or_ the proper
     *    GIT_OBJECT_DIRECTORY environment variable
     *  - a refs/ directory
     *  - either a HEAD symlink or a HEAD file that is formatted as
     *    a proper "ref:", or a regular file HEAD that has a properly
     *    formatted sha1 object name.
     */
    

    See what’s wrong with your .git. This ties in with @Chris Nicola ‘s answer of the HEAD being lowercase etc.

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

Sidebar

Related Questions

I have a git repo in GitHub. I've been mostly using git gui to
I have a git repo, and a revision code I want it to get
I have a Git repo that I have deleted four files from using rm
I have a git repo hosted on my server using gitosis. I had branches
I'm using the Thor gem, but I have cloned the git repo to a
I have a a remote git repo and a local clone. Let's say I
I have a git repository which tracks an svn repository. I cloned it using
Say I have a git repository and I've been working on master, can I
I have a git repo (let's call it default) with files A, B, and
I have a git repo containing many folders. I need to find out what

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.