fatal: not a git repository (or any of the parent directories): .git
Gys opened this issue · 5 comments
Describe the bug
I am in a directory with a .git folder but get:
fatal: not a git repository (or any of the parent directories): .git
To Reproduce
Steps to reproduce the behavior:
- MacOS Big Sur 11.2.1, iTerm2 3.4.4, Bash 3.2.57(1)-release
brew install bit-git
bit complete
answeredy
bit
gives the errorls .git
gives contents of git folder
You need to be inside a git repository directory for git (and by extention bit) can do anything.
@karx1: I am. Is that not clear from my description? I mention twice that I am doing all this inside a folder with a .git subfolder, so effectively inside a repository.
Updating git worked for me
❯ bit --version
bit version v1.0.1
git version 2.30.1
This also happened to me. Currently on macOS Catalina, 10.15.7. I tried installing with both the shell script and with Homebrew.
My specs:
> bit --version
bit version v1.0.1
git version 2.17.0
I am currently in a Git folder:
> ls .git
HEAD config hooks objects
branches description info refs
The only thing that worked was upgrading to Git 2.30.1
.
This issue should now be fixed in version v1.0.2. Please let me know if you're still having problems. Also, consider donating if you're enjoying using Bit :)
use bit update