2022-03-17

is it possible to avoid the pubspc.lock file conflct when put it into git version control

I am writing a flutter app, the pubspec.lock file always been conflict after I checked into this file to git version control. I already searching from the web that told me it is better to put the pubspec.lock file to version control. In Dart and Pub, should I add pubspec.lock to my .gitignore?

is it possible to avoid the pubspec.lock file conflict? I am delete the pubspec.lock file and regenerate it right now because I did not know how to merge the lock file. how about add the pubspec.lock to .gitigore? I hate to put this file to version control.



No comments:

Post a Comment