Solution to the error "fatal: not in a git directory" when installing fcrackzip on MAC

1. Introduction

 

Due to the download of Qian'er's dad's audio file, Qian'er's dad's Super Romance of the Three Kingdoms all seven seasons and 420 episodes of audio mp3s were downloaded from Baidu Netdisk Weiyun . The publisher actually encrypted the compressed file and openly asked for money. It's really intolerable, but aunt can't bear it. . So, I want to download a tool to decompress passwords online.

2. Problems encountered

After searching for the fcrackzip software, I came across it, but the software needs to be installed. See the installation tutorial: Compressed file decompression password cracking fcrackzip_G_SANGSK's blog-CSDN blog_fcrackzip

My MAC computer was installed according to the tutorial, but it kept reporting errors. The error message was "fatal: not in a git directory", as shown below:

 

3. Solution

Brew -v will show two prompts, prompting the user to set the file path of homebrew-caskand homebrew-coreto safe.directory, that is, use the following naming:

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask

problem solved.

Guess you like

Origin blog.csdn.net/qq_29855509/article/details/126087815