Reputation: 2126
I am getting the following error when I try to access git from my Android studio. I am able to do git operations using terminal
Error:fatal: unsafe repository ('/home/....' is owned by someone else) To add an exception for this directory, call: git config --global --add safe.directory /home/....
I already tried git config --global --add safe.directory /home/.... but it didn't help.
Upvotes: 0
Views: 370
Reputation: 2126
For some strange reason running the command in Android studio's terminal worked although running it through the normal terminal didn't help
git config --global --add safe.directory /home/....
Upvotes: 0