Flutter

You need GitBash only for Windows environment. No need in case of Linux. Just directly install flutter.

NOTE -You need to have installed 2 software in exactly the sequence order shown here (firts Git, then flutter) to try out following Git Bash CLI commands.

(Remember: Order of installation is important, or else Git Bash might complain that flutter not found despite flutter is preinstalled).
  1. Git Bash [https://git-scm.com/downloads]
  2. Flutter SDK [https://flutter.dev/docs/get-started/install]
$ flutter
Shows you entire manual of all flutter commands with options.
$ flutter --version
Flutter 2.2.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f4abaa0735 (9 weeks ago) • 2021-07-01 12:46:11 -0700
Engine • revision 241c87ad80
Tools • Dart 2.13.4
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 6.1.7601], locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[√] Chrome - develop for the web
[!] Android Studio (not installed)
[√] Connected device (1 available)

! Doctor found issues in 2 categories.
$ flutter doctor --android-licenses
Runs the license update process. Asks to accept step by step.Once completed, run the doctor command again to see the difference.
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 6.1.7601], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[!] Android Studio (not installed)
[√] Connected device (1 available)

! Doctor found issues in 1 category.
$ flutter devices
1 connected device:

Chrome (web) • chrome • web-javascript • Google Chrome 93.0.4577.63
$ flutter upgrade
Flutter is already up to date on channel stable
Flutter 2.2.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f4abaa0735 (9 weeks ago) • 2021-07-01 12:46:11 -0700
Engine • revision 241c87ad80
Tools • Dart 2.13.4
$ flutter clean myFlutterProject
Deletes the build/ and .dart_tool/ directories.
Deleting .dart_tool...                                              36ms
Deleting .packages...                                               18ms
Deleting Generated.xcconfig...                                       0ms
Deleting flutter_export_environment.sh...                            0ms