when i run in powershell
git config –global –add safe.directory C:/tools/flutter-base-dir
gives me :
fatal: bad config line 11 in file C:/Users/akram/.gitconfig
what is the problem
flutter
Error: Unable to find git in your PATH.
git config –global –add safe.directory C:/tools/flutter-base-dir
fatal: bad config line 11 in file C:/Users/akram/.gitconfig
2
Answers
Have you added git path in your environment variables, you can try adding that, also the same question has been asked and answered in the post:
Error: Unable to find git in your PATH with FLUTTER
You can refer that, add the env variables and check again, if it still does not work, you can use the command
git config –global –add safe.directory C:/tools/flutter-base-dir
the bold part needs to be replaced with the location where your flutter directory is present.
Looks like you don’t have Git installed. You can install Git on your Windows by using this command in Powershell: