My question is simple. I can clone a private git repository using
git clone https://my_user_name:my_password@github.com/my_account/my_package.git
now, How can I add a private package from GitHub with my user and password to my pubspec.yaml?
dependencies:
my_package:
git: https://my_user_name:my_password@github.com/my_account/my_package.git
In my case, I am working with Flutter/Dart in IntelliJ IDEA. But assume the solution should work on any environment and other programming languages.