zhangyuang / dclone Goto Github PK
View Code? Open in Web Editor NEWThe simplest command for downloading specified directory in github/gitlab can cutting down download time
License: MIT License
The simplest command for downloading specified directory in github/gitlab can cutting down download time
License: MIT License
try the example but fails, same for another repository
\ example/ssr-with-loadable is cloningError: Command failed: git pull origin dev
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) {
killed: false,
code: 1,
signal: null,
cmd: 'git pull origin dev',
stdout: '',
stderr: '[email protected]: Permission denied (publickey).\r\n' +
'fatal: Could not read from remote repository.\n' +
'\n' +
'Please make sure you have the correct access rights\n' +
'and the repository exists.\n'
}
请问楼主,这个程序使用前需要先让github/gitlab添加本地主机的公钥吗?
dclone https://github.com/google-research/google-research/tree/master/merf
您试试,我测试了下,他还是把整个仓库下载下来了。
我用它下载整个项目或文件夹没问题,但是下载单个文件就报错了
这里可以加上 --depth=1 来加速克隆的速度,只 clone 最新的 commit hash 内容,历史忽略。
https://github.com/ykfe/dclone/blob/daf3eea1a3b107284501065fe434e1e51e22804d/src/dclone.ts#L22
另外,sparse-checkout 的这种方式有没有类似 clone --depth=1 的优化方案?
https://github.com/ykfe/dclone/blob/daf3eea1a3b107284501065fe434e1e51e22804d/src/dclone.ts#L50
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.