Posted on Liked https://github.com/NixOS/nixpkgs/issues/355486#issuecomment-2488329223

Finally fixing my nix-based dev env on MacOS. I was getting error: tool 'git' not found when in a dev env.

sudo xcode-select --reset
sudo xcode-select --switch /Library/Developer/CommandLineTools

wound up fixing it

Filed under: git nix