I forked a package from GitHub and had several commits on it. I want to use a specific commit in a project. How to use a specific commit in my project.
>Solution :
See Package dependencies > Dependency sources > Git packages in the Dart docs:
dependencies: kittens: git: url: git@github.com:munificent/kittens.git ref: some-branchThe ref can be anything that Git allows to identify a commit.
So you can write your commit hash as the value for ref: to use that specific commit.