1

When running

git config --global --add safe.directory (directory_path)

I found that (directory_path) cannot be set to ./

Why? Are there any limitations?

https://git-scm.com/docs/git-config

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135

1 Answers1

1

You can use $(pwd) instead of ./ and it'll work just fine. pwd returns current working directory as full path

The full command will be git config --global --add safe.directory $(pwd)