Skip to content

文件名中冒号(:)导致Windows环境下git clone失败,能否改一下格式 #94

@Dalton2333

Description

@Dalton2333

这个错误的核心原因是 Windows 系统不允许文件路径中包含冒号(:),而仓库中存在路径 data/agent_data/MiniMax-M2/log/2025-10-01 15:00:00/log.jsonl(时间格式里的 : 是 Windows 路径的非法字符),导致克隆成功后无法创建该文件, checkout 失败。

git clone https://github.com/HKUDS/AI-Trader.git
Cloning into 'AI-Trader'...
remote: Enumerating objects: 4856, done.
remote: Counting objects: 100% (1434/1434), done.
remote: Compressing objects: 100% (291/291), done.
remote: Total 4856 (delta 1254), reused 1156 (delta 1143), pack-reused 3422 (from 2)
Receiving objects: 100% (4856/4856), 12.87 MiB | 13.32 MiB/s, done.
Resolving deltas: 100% (2709/2709), done.
fatal: cannot create directory at 'data/agent_data/MiniMax-M2/log/2025-10-01 15:00:00': Invalid argument
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions