gpt4 book ai didi

flutter - 在 git 依赖中选择分支

转载 作者:IT王子 更新时间:2023-10-29 07:07:52 28 4
gpt4 key购买 nike

是否可以在pubspec.yaml中选择一些分支?

  library_sdk:
git:
url: git://github.com/library/library.git

我需要使用 develop 分支而不是 master。

最佳答案

好的,来自 flutter 文档(https://dart.dev/tools/pub/dependencies):

If you want to depend on a specific commit, branch, or tag, add a refargument:

 dependencies:   
kittens:
git:
url: git://github.com/munificent/kittens.git
ref: some-branch

关于flutter - 在 git 依赖中选择分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54689346/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com