Sarah Audi
Sarah Audi

Reputation: 13

Flutter commit to git after alter library

Is there a way to commit flutter framework library to your git project?

My problem using flutter is when I do some code change to the framework, the change only being kept on local repository. I wish I could push it to the remote repository so my team dont have to make the change on their own PC.

The other solution that i thought could be possible is creating my own flutter framework version, and push this clone to my own repository. But I'm not sure if this way is possible.

Upvotes: 1

Views: 383

Answers (1)

VonC
VonC

Reputation: 1327184

This is done usually through git submodules.

flutter/website issue 1845 is about that:

git submodule add https://github.com/flutter/flutter ./vendor/flutter

Consider passsy/flutter_wrapper, a shell script which downloads and executes the Flutter SDK with the exact version defined in your project respository. It encourages the idea that upgrading Flutter should happen per project, not per developer.

It will do the git submodule add for you.

Upvotes: 2

Related Questions