Git_discovery_across_filesystem not set

 I have searched and read few post but my problem is not the same as descirbed. So here's the issue: using git clone into folder under external partition of the disk works fine but all git commands fails. can't execute git status or git log... I always get error

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

Please help me out..

├── abi
├── bionic
├── bootable
├── build
├── cts
├── dalvik
├── development
├── device
├── docs
├── external
├── frameworks
├── gdk
├── hardware
├── libcore
├── libnativehelper
├── ndk
├── packages
├── pdk
├── prebuilts
├── .repo
├── sdk
├── system
└── tools

Answered by Sunita pandey

If getting error “stopping at filesystem boundary (git_discovery_across_filesystem not set)” then

Case 1:

A. Type git init into your command line and press enter.

B. Run your command again, you probably were running git remote add origin [your-repository].

Case 2:

See if you are actually under a GitHub repo. Listing of .git/ should give you results. If you notice that you are some level outside your repo. All you need to do is 'cd' to your repo and you should be out of this issue.


Your Answer

Interviews

Parent Categories