Error installing git in vs code Dart & Flutter

I get this error on startup VS Code when i download Git:

The Flutter Daemon failed to start.

Before installing git, the whole project was working. I could choose the emulator I wanted to run the project on, etc. After installing git (PATH variable has path to git) vs code gives an error:

PS C:flutterProjecttg> flutter doctor Error: Unable to find git in your PATH. 

Also I can’t just start the project and select the emulator to run the program. Checked the git installation through the console:

Git in PATH:

No devices emulator:

If I uninstall git again and restart vs code, everything will work.

When you look at the logs, it says the following:

[2:38:08 PM] [General] [Info] Searching for SDKs...
[2:38:08 PM] [General] [Info] Environment PATH:
[2:38:08 PM] [General] [Info]     C:Windowssystem32
[2:38:08 PM] [General] [Info]     C:Windows
[2:38:08 PM] [General] [Info]     C:WindowsSystem32Wbem
[2:38:08 PM] [General] [Info]     C:WindowsSystem32WindowsPowerShellv1.0
[2:38:08 PM] [General] [Info]     C:WindowsSystem32OpenSSH
[2:38:08 PM] [General] [Info]     C:Program FilesNVIDIA CorporationNVIDIA NvDLISR
[2:38:08 PM] [General] [Info]     C:Program Files (x86)NVIDIA CorporationPhysXCommon
[2:38:08 PM] [General] [Info]     C:Program Filesdotnet
[2:38:08 PM] [General] [Info]     C:Program FilesMicrosoft SQL Server150ToolsBinn
[2:38:08 PM] [General] [Info]     C:Program FilesMicrosoft SQL ServerClient SDKODBC170ToolsBinn
[2:38:08 PM] [General] [Info]     C:Program Files (x86)Windows Kits10Windows Performance Toolkit
[2:38:08 PM] [General] [Info]     C:Program FilesGitcmd
[2:38:08 PM] [General] [Info]     C:UsersneketDownloadsopenjdk-11.0.0.2_windows-x64jdk-11.0.0.2bin
[2:38:08 PM] [General] [Info]     C:Program FilesGitbin
[2:38:08 PM] [General] [Info]     C:UsersneketAppDataLocalProgramsPythonLauncher
[2:38:08 PM] [General] [Info]     C:UsersneketAppDataLocalMicrosoftWindowsApps
[2:38:08 PM] [General] [Info]     C:UsersneketAppDataLocalProgramsMicrosoft VS Codebin
[2:38:08 PM] [General] [Info]     C:flutterbin
[2:38:08 PM] [General] [Info]     C:UsersneketAppDataLocalProgramsPythonPython312Scripts
[2:38:08 PM] [General] [Info]     C:UsersneketDownloadsapache-maven-3.9.9-binapache-maven-3.9.9bin
[2:38:08 PM] [General] [Info] Took 114ms to search for projects (5 levels)
[2:38:08 PM] [General] [Info] Took 2ms to filter out excluded projects (0 exclusion rules)
[2:38:08 PM] [General] [Info] Found Flutter project at C:flutterProjecttg:
            Mobile? true
            Web? false
            Create Trigger? false
            Flutter Repo? false
[2:38:08 PM] [General] [Info] Searching for flutter.bat
[2:38:08 PM] [General] [Info]     Looking for flutter.bat in:
[2:38:08 PM] [General] [Info]         C:flutterProjecttg
[2:38:08 PM] [General] [Info]         C:flutterProjecttg -> C:flutterProjecttgbin
[2:38:08 PM] [General] [Info]         C:flutterbin
[2:38:08 PM] [General] [Info]         C:flutterProjecttg.flutter
[2:38:08 PM] [General] [Info]         C:flutterProjecttg.flutter -> C:flutterProjecttg.flutterbin
[2:38:08 PM] [General] [Info]         C:flutterProjecttgvendorflutter
[2:38:08 PM] [General] [Info]         C:flutterProjecttgvendorflutter -> C:flutterProjecttgvendorflutterbin
[2:38:08 PM] [General] [Info]         C:Windowssystem32
[2:38:08 PM] [General] [Info]         C:Windowssystem32 -> C:Windowssystem32bin
[2:38:08 PM] [General] [Info]         C:Windows
[2:38:08 PM] [General] [Info]         C:Windows -> C:Windowsbin
[2:38:08 PM] [General] [Info]         C:WindowsSystem32Wbem
[2:38:08 PM] [General] [Info]         C:WindowsSystem32Wbem -> C:WindowsSystem32Wbembin
[2:38:08 PM] [General] [Info]         C:WindowsSystem32WindowsPowerShellv1.0
[2:38:08 PM] [General] [Info]         C:WindowsSystem32WindowsPowerShellv1.0 -> C:WindowsSystem32WindowsPowerShellv1.0bin
[2:38:08 PM] [General] [Info]         C:WindowsSystem32OpenSSH
[2:38:08 PM] [General] [Info]         C:WindowsSystem32OpenSSH -> C:WindowsSystem32OpenSSHbin
[2:38:08 PM] [General] [Info]         C:Program FilesNVIDIA CorporationNVIDIA NvDLISR
[2:38:08 PM] [General] [Info]         C:Program FilesNVIDIA CorporationNVIDIA NvDLISR -> C:Program FilesNVIDIA CorporationNVIDIA NvDLISRbin
[2:38:08 PM] [General] [Info]         C:Program Files (x86)NVIDIA CorporationPhysXCommon
[2:38:08 PM] [General] [Info]         C:Program Files (x86)NVIDIA CorporationPhysXCommon -> C:Program Files (x86)NVIDIA CorporationPhysXCommonbin
[2:38:08 PM] [General] [Info]         C:Program Filesdotnet
[2:38:08 PM] [General] [Info]         C:Program Filesdotnet -> C:Program Filesdotnetbin
[2:38:08 PM] [General] [Info]         C:Program FilesMicrosoft SQL Server150ToolsBinn
[2:38:08 PM] [General] [Info]         C:Program FilesMicrosoft SQL Server150ToolsBinn -> C:Program FilesMicrosoft SQL Server150ToolsBinnbin
[2:38:08 PM] [General] [Info]         C:Program FilesMicrosoft SQL ServerClient SDKODBC170ToolsBinn
[2:38:08 PM] [General] [Info]         C:Program FilesMicrosoft SQL ServerClient SDKODBC170ToolsBinn -> C:Program FilesMicrosoft SQL ServerClient SDKODBC170ToolsBinnbin
[2:38:08 PM] [General] [Info]         C:Program Files (x86)Windows Kits10Windows Performance Toolkit
[2:38:08 PM] [General] [Info]         C:Program Files (x86)Windows Kits10Windows Performance Toolkit -> C:Program Files (x86)Windows Kits10Windows Performance Toolkitbin
[2:38:08 PM] [General] [Info]         C:Program FilesGitcmd
[2:38:08 PM] [General] [Info]         C:Program FilesGitcmd -> C:Program FilesGitcmdbin
[2:38:08 PM] [General] [Info]         C:UsersneketDownloadsopenjdk-11.0.0.2_windows-x64jdk-11.0.0.2bin
[2:38:08 PM] [General] [Info]         C:Program FilesGitbin
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalProgramsPythonLauncher
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalProgramsPythonLauncher -> C:UsersneketAppDataLocalProgramsPythonLauncherbin
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalMicrosoftWindowsApps
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalMicrosoftWindowsApps -> C:UsersneketAppDataLocalMicrosoftWindowsAppsbin
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalProgramsMicrosoft VS Codebin
[2:38:08 PM] [General] [Info]         C:flutterbin
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalProgramsPythonPython312Scripts
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalProgramsPythonPython312Scripts -> C:UsersneketAppDataLocalProgramsPythonPython312Scriptsbin
[2:38:08 PM] [General] [Info]         C:UsersneketDownloadsapache-maven-3.9.9-binapache-maven-3.9.9bin
[2:38:08 PM] [General] [Info]         C:Usersneketflutter-sdk
[2:38:08 PM] [General] [Info]         C:Usersneketflutter-sdk -> C:Usersneketflutter-sdkbin
[2:38:08 PM] [General] [Info]         /google/flutter
[2:38:08 PM] [General] [Info]         /google/flutter -> googleflutterbin
[2:38:08 PM] [General] [Info]         /opt/flutter
[2:38:08 PM] [General] [Info]         /opt/flutter -> optflutterbin
[2:38:08 PM] [General] [Info]     Found at:
[2:38:08 PM] [General] [Info]         C:flutterbin
[2:38:08 PM] [General] [Info]         C:flutterbin
[2:38:08 PM] [General] [Info]     Candidate paths to be post-filtered:
[2:38:08 PM] [General] [Info]         C:flutterbin -> C:flutter
[2:38:08 PM] [General] [Info]         C:flutterbin -> C:flutter
[2:38:08 PM] [General] [Info]     Found at C:flutterbin -> C:flutter
[2:38:08 PM] [General] [Info]     Returning SDK path C:flutter for flutter.bat
[2:38:08 PM] [General] [Info] Searching for dart.exe
[2:38:08 PM] [General] [Info]     Looking for dart.exe in:
[2:38:08 PM] [General] [Info]         C:flutterbincachedart-sdk
[2:38:08 PM] [General] [Info]         C:flutterbincachedart-sdk -> C:flutterbincachedart-sdkbin
[2:38:08 PM] [General] [Info]         C:Windowssystem32
[2:38:08 PM] [General] [Info]         C:Windowssystem32 -> C:Windowssystem32bin
[2:38:08 PM] [General] [Info]         C:Windows
[2:38:08 PM] [General] [Info]         C:Windows -> C:Windowsbin
[2:38:08 PM] [General] [Info]         C:WindowsSystem32Wbem
[2:38:08 PM] [General] [Info]         C:WindowsSystem32Wbem -> C:WindowsSystem32Wbembin
[2:38:08 PM] [General] [Info]         C:WindowsSystem32WindowsPowerShellv1.0
[2:38:08 PM] [General] [Info]         C:WindowsSystem32WindowsPowerShellv1.0 -> C:WindowsSystem32WindowsPowerShellv1.0bin
[2:38:08 PM] [General] [Info]         C:WindowsSystem32OpenSSH
[2:38:08 PM] [General] [Info]         C:WindowsSystem32OpenSSH -> C:WindowsSystem32OpenSSHbin
[2:38:08 PM] [General] [Info]         C:Program FilesNVIDIA CorporationNVIDIA NvDLISR
[2:38:08 PM] [General] [Info]         C:Program FilesNVIDIA CorporationNVIDIA NvDLISR -> C:Program FilesNVIDIA CorporationNVIDIA NvDLISRbin
[2:38:08 PM] [General] [Info]         C:Program Files (x86)NVIDIA CorporationPhysXCommon
[2:38:08 PM] [General] [Info]         C:Program Files (x86)NVIDIA CorporationPhysXCommon -> C:Program Files (x86)NVIDIA CorporationPhysXCommonbin
[2:38:08 PM] [General] [Info]         C:Program Filesdotnet
[2:38:08 PM] [General] [Info]         C:Program Filesdotnet -> C:Program Filesdotnetbin
[2:38:08 PM] [General] [Info]         C:Program FilesMicrosoft SQL Server150ToolsBinn
[2:38:08 PM] [General] [Info]         C:Program FilesMicrosoft SQL Server150ToolsBinn -> C:Program FilesMicrosoft SQL Server150ToolsBinnbin
[2:38:08 PM] [General] [Info]         C:Program FilesMicrosoft SQL ServerClient SDKODBC170ToolsBinn
[2:38:08 PM] [General] [Info]         C:Program FilesMicrosoft SQL ServerClient SDKODBC170ToolsBinn -> C:Program FilesMicrosoft SQL ServerClient SDKODBC170ToolsBinnbin
[2:38:08 PM] [General] [Info]         C:Program Files (x86)Windows Kits10Windows Performance Toolkit
[2:38:08 PM] [General] [Info]         C:Program Files (x86)Windows Kits10Windows Performance Toolkit -> C:Program Files (x86)Windows Kits10Windows Performance Toolkitbin
[2:38:08 PM] [General] [Info]         C:Program FilesGitcmd
[2:38:08 PM] [General] [Info]         C:Program FilesGitcmd -> C:Program FilesGitcmdbin
[2:38:08 PM] [General] [Info]         C:UsersneketDownloadsopenjdk-11.0.0.2_windows-x64jdk-11.0.0.2bin
[2:38:08 PM] [General] [Info]         C:Program FilesGitbin
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalProgramsPythonLauncher
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalProgramsPythonLauncher -> C:UsersneketAppDataLocalProgramsPythonLauncherbin
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalMicrosoftWindowsApps
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalMicrosoftWindowsApps -> C:UsersneketAppDataLocalMicrosoftWindowsAppsbin
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalProgramsMicrosoft VS Codebin
[2:38:08 PM] [General] [Info]         C:flutterbin
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalProgramsPythonPython312Scripts
[2:38:08 PM] [General] [Info]         C:UsersneketAppDataLocalProgramsPythonPython312Scripts -> C:UsersneketAppDataLocalProgramsPythonPython312Scriptsbin
[2:38:08 PM] [General] [Info]         C:UsersneketDownloadsapache-maven-3.9.9-binapache-maven-3.9.9bin
[2:38:08 PM] [General] [Info]         C:flutterbincachedart-sdk
[2:38:08 PM] [General] [Info]         C:flutterbincachedart-sdk -> C:flutterbincachedart-sdkbin
[2:38:08 PM] [General] [Info]     Found at:
[2:38:08 PM] [General] [Info]         C:flutterbincachedart-sdk -> C:flutterbincachedart-sdkbin
[2:38:08 PM] [General] [Info]         C:flutterbincachedart-sdk -> C:flutterbincachedart-sdkbin
[2:38:08 PM] [General] [Info]     Candidate paths to be post-filtered:
[2:38:08 PM] [General] [Info]         C:flutterbincachedart-sdk
[2:38:08 PM] [General] [Info]         C:flutterbincachedart-sdk
[2:38:08 PM] [General] [Info]     Found at C:flutterbincachedart-sdk
[2:38:08 PM] [General] [Info]     Returning SDK path C:flutterbincachedart-sdk for dart.exe
[2:38:08 PM] [General] [Info] Experiment random number is 63 for experiment 'sdkDaps'. Experiment is enabled for <= 100
[2:38:08 PM] [General] [Info] Experiment 'sdkDaps' is activating (not first time)
[2:38:08 PM] [General] [Info] Experiment random number is 63 for experiment 'sdkDaps'. Experiment is enabled for <= 100
[2:38:08 PM] [General] [Info] Experiment 'sdkDaps' is activating (not first time)
[2:38:08 PM] [General] [Info] Experiment random number is 63 for experiment 'sdkDaps'. Experiment is enabled for <= 10
[2:38:08 PM] [General] [Info] Experiment 'sdkDaps' does not apply and will not be activated
[2:38:08 PM] [General] [Info] !! ⚠️ PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING ⚠️ !!
Dart Code extension: 3.96.0
Flutter extension: 3.96.0 (not activated)

App: Visual Studio Code
App Host: desktop
Version: win 1.93.0

Workspace type: Flutter (LSP)
Workspace name: tg

Dart (3.5.1): C:flutterbincachedart-sdk
Flutter (3.24.1): C:flutter (No device)
[2:38:08 PM] [FlutterDaemon] [Info] Spawning C:flutterbinflutter.bat with args ["daemon"]
[2:38:08 PM] [FlutterDaemon] [Info] ..  in C:flutter
[2:38:08 PM] [FlutterDaemon] [Info] ..  with {"toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code","FLUTTER_ROOT":"C:\flutter"}}
[2:38:08 PM] [FlutterDaemon] [Info]     PID: 2684
[2:38:08 PM] [General] [Info] Returning cached results for project search
[2:38:08 PM] [DartToolingDaemon] [Info] Spawning C:flutterbincachedart-sdkbindart.exe with args ["tooling-daemon","--machine"]
[2:38:08 PM] [DartToolingDaemon] [Info] ..  with {"toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code","FLUTTER_ROOT":"C:\flutter"}}
[2:38:08 PM] [DartToolingDaemon] [Info]     PID: 2684
[2:38:08 PM] [General] [Info] Checking 1 projects for supported platforms
[2:38:08 PM] [Analyzer] [Info] Spawning C:flutterbincachedart-sdkbindart.exe with args ["language-server","--protocol=lsp","--client-id=VS-Code","--client-version=3.96.0"]
[2:38:08 PM] [Analyzer] [Info]     PID: 18720
[2:38:08 PM] [General] [Info] Returning cached results for project search
[2:38:08 PM] [General] [Info] Activating Flutter extension for Flutter project...
[2:38:08 PM] [General] [Info] Version last used for Pub is 3.5.1 (3.5.0), current is 3.5.1 (3.5.0)
[2:38:08 PM] [General] [Info] Found pub status for 0 folders:
[2:38:08 PM] [Analyzer] [Info] ==> Content-Length: 6543
[2:38:08 PM] [Analyzer] [Info] ==> {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":2684,"clientInfo":{"name":"Visual Studio Code","version":"1.93.0"},"locale":"en","rootPath":"c:\flutterProject\tg","rootUri":"file:///C%3A/flutterProject/tg","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"changeAnnotationSupport":{"groupsOnLabel":true}},"configurat…
[2:38:08 PM] [General] [Info] Loaded 20000 package names from vscode-userdata:/c%3A/Users/neket/AppData/Roaming/Code/User/globalStorage/dart-code.dart-code/package_cache.json
[2:38:08 PM] [FlutterDaemon] [Info] <== Error: Unable to find git in your PATH.

Reinstalled git. Added and removed Git PATH manually

1

Run this command in you windows command prompt

git config --global --add safe.directory *

This will automatically adjust all necessary things for git.
And then run command

flutter doctor

0

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật