can't run git command in safe mode in android studio

Viewed 34

There is an error in my android studio when I go to setting -> version control -> git. in that when I try to test my path then it shows that "can't run git command in safe mode".

I'm new to git and GitHub right now so still don't understand what the problem is.

please help me, thank you

1 Answers

when you opened/imported the project you probably saw something like: this

and you probably selected "stay in safe mode"

a fix:

head to: file -> settings/preferences -> Build, Execution, Deployment -> Trusted Locations and add the path to your project or the directory that holds all of your projects (eg. C:\...\AndroidStudioProjects)

Related