簡體   English   中英

無法在Windows上使用git克隆存儲庫

[英]Can't clone repository with git on windows

我嘗試使用git.exe檢出Windows 7機器上的存儲庫:

C:/tmp>git --version
git version 2.12.0.windows.1

C:/tmp>git clone https://someuser@bitbucket.org/somcomp/someproj.git
Cloning into 'somproj'...
remote: Counting objects: 11762, done.
remote: Compressing objects: 100% (7028/7028), done.
Receiving objects: 100% (11762/11762), 48.36 MiB | 1.30 MiB/s, done.
remote: Total 11762 (delta 5706), reused 10135 (delta 4230)
Resolving deltas: 100% (5706/5706), done.
fatal: cannot create directory at 'someproj/node_modules/console-stamp/node_modules/dateformat/node_modules/meow/node_modules/normalize-package-data/node_modules/validate-npm-package-license/node_modules/spdx-correct/node_modules': No such file or directory
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

C:\tmp>git status
fatal: Not a git repository (or any of the parent directories): .git

我能在這做什么? 我嘗試了git config --system core.longpaths真正的建議,但它沒有幫助。 還有其他食譜嗎? 如果我在bitbucket中查看它並且只有一個子文件夾,則失敗的文件夾似乎不包含任何丑陋的字符:

node_modules / console-stamp / node_modules / dateformat / node_modules / meow / node_modules / normalize-package-data / node_modules / validate-npm-package-license / node_modules / spdx-correct / node_modules / spdx-license-ids /

任何想法的Thanx。

升級到git版本2.12.2.windows.2解決了我的問題,因為這個bug最近才修復。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM