chriswalz / bit

Bit is a modern Git CLI
Apache License 2.0
6.05k stars 106 forks source link

fatal: not a git repository (or any of the parent directories): .git #99

Closed Gys closed 3 years ago

Gys commented 3 years ago

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:

  1. MacOS Big Sur 11.2.1, iTerm2 3.4.4, Bash 3.2.57(1)-release
  2. brew install bit-git
  3. bit complete answered y
  4. bit gives the error
  5. ls .git gives contents of git folder
karx1 commented 3 years ago

You need to be inside a git repository directory for git (and by extention bit) can do anything.

Gys commented 3 years ago

@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.

imranansari commented 3 years ago

Updating git worked for me

❯ bit --version
bit version v1.0.1
git version 2.30.1
mdodell commented 3 years ago

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.

chriswalz commented 3 years ago

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