【问题标题】:Git error: ambiguous argument '***': unknown revision or path not in the working treeGit 错误:不明确的参数“***”:未知修订版或路径不在工作树中
【发布时间】:2021-09-15 14:57:10
【问题描述】:

在我的 Flutter 应用程序中,当尝试执行 pub get /酒吧升级

minor_changes - 是我的 fork of bonfire 包的分支。 公开。最有趣的是我的另一台电脑上没有出现这个错误。两台机器上都安装了 Windows。

我花了两天时间寻找这个问题的解决方案,有类似的案例,但没有任何帮助。

我的依赖:

bonfire:
    git:
      url: https://github.com/rockstar4095/bonfire
      ref: minor_changes

错误信息:

Git error. Command: git rev-list --max-count=1 minor_changes
stdout: 
stderr: fatal: ambiguous argument 'minor_changes': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
exit code: 128

pub get failed (server unavailable) -- attempting retry 1 in 1 second...

【问题讨论】:

    标签: flutter github flutter-dependencies


    【解决方案1】:

    我使用 Flutter 并想通过以下方式从 git 检查插件:

    flutter_geocoder:
        git:
          url: "https://github.com/JCKodel/flutter_geocoder.git"
          ref: "b0361f4"
    

    我也遇到了同样的错误。 在 git 页面上没有人说这个错误...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-29
      • 1970-01-01
      • 1970-01-01
      • 2023-03-25
      • 2016-09-15
      • 2020-07-24
      • 2017-12-19
      • 1970-01-01
      相关资源
      最近更新 更多