2

Will I have access to the private repository as written below? like for public repo

  flutter_component:
    git:
      url: https://github.com/lordyhas/flutter_component

or I have to do otherwise

torek
  • 448,244
  • 59
  • 642
  • 775
lordyhas
  • 360
  • 1
  • 11
  • see if this helps: https://stackoverflow.com/questions/54565354/how-to-access-private-repo-packages-in-flutter-using-ssh – Benyamin Oct 23 '21 at 12:55
  • 1
    thanks for your @Benyamin, I've already seen it, that doesn't answer my question – lordyhas Oct 23 '21 at 17:12

1 Answers1

1

Yes, it works, like for the public repository, I have already tested it.
You can do it,

  flutter_component:
    git:
      url: https://github.com/lordyhas/flutter_component
lordyhas
  • 360
  • 1
  • 11
  • I don't know why but it doesn't work on Linux – lordyhas Feb 26 '22 at 10:04
  • 1
    because you can't access private repo via https, unless you apply your repo credentials (user+password) which is still not a good way if you want to make it more secure. Private repos are meant to be accessed via ssh only – Слава ЗСУ Apr 14 '23 at 00:40