如何在 flutter 应用程序中使用特定的提交?
How to use a specific commit in flutter app?
我从 GitHub 分叉了一个包,并对其进行了多次提交。我想在项目中使用特定的提交。如何在我的项目中使用特定的提交。
请参阅 Dart 文档中的 Package dependencies > Dependency sources > Git packages:
dependencies:
kittens:
git:
url: git@github.com:munificent/kittens.git
ref: some-branch
The ref can be anything that Git allows to identify a commit.
因此您可以将提交哈希写为 ref:
的值以使用该特定提交。
我从 GitHub 分叉了一个包,并对其进行了多次提交。我想在项目中使用特定的提交。如何在我的项目中使用特定的提交。
请参阅 Dart 文档中的 Package dependencies > Dependency sources > Git packages:
dependencies: kittens: git: url: git@github.com:munificent/kittens.git ref: some-branch
The ref can be anything that Git allows to identify a commit.
因此您可以将提交哈希写为 ref:
的值以使用该特定提交。