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
AKRAM Ata is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
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.
2
Looks like you don’t have Git installed. You can install Git on your Windows by using this command in Powershell:
winget install -e --id Git.Git
Then add the directory C:Program FilesGitbin
to your PATH.
You can either issue Git commands directly in Powershell or you can use Git-Bash which comes with the installation.
2