赞
踩
在 windows 上 git clone 后报错如下:
remote: Enumerating objects: 720, done.
Receiving objects: 91% (656/720), 29.19remote: Total 720 (delta 0), reused 0 (delta 0), pack-reused 720
Receiving objects: 100% (720/720), 29.57 MiB | 1.59 MiB/s, done.
Resolving deltas: 100% (447/447), done.
fatal: cannot create directory at 'checkpoints/Breakout-v0/min_delta--1/max_delta-1/history_length-4/train_frequency-4/target_q_update_step-10000/memory_size-1000000/action_repeat-4/ep_end_t-1000000/backend-tf/random_start-30/scale-10000/env_type-simple': Filename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
原因是有个文件名的路径过长。解决办法:
进入文件夹的目录中,执行
git config core.longpaths true
git status
git restore --staged .
git restore .
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。