how-to-manage-multiple-flutter-versions-with-git-worktrees-and-z
Installation
SKILL.md
How to Manage Multiple Flutter Versions with Git Worktrees and ZSH
If you have been using Flutter for any length of time then you probably have needed to use multiple flutter versions across multiple projects.
In the past I used to use FVM (Flutter Version Management) which is similar to NVM (Node Version Manager) in the JS world.
I wanted a solution that only relied on Git, and started using worktrees to manage the Flutter channels.
Download the SDK
Check out the flutter repo in a known directory, in this case I will download it to ~/Developer/:
git clone https://github.com/flutter/flutter ~/Developer/flutter