When running
git config --global --add safe.directory (directory_path)
I found that (directory_path)
cannot be set to ./
Why? Are there any limitations?
When running
git config --global --add safe.directory (directory_path)
I found that (directory_path)
cannot be set to ./
Why? Are there any limitations?
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)