gpt4 book ai didi

git - 下载github项目的特定分支

转载 作者:太空狗 更新时间:2023-10-29 12:48:59 27 4
gpt4 key购买 nike

简而言之,要运行卷积神经网络模型,我需要一个特殊版本的 nolearn,它的 url 格式为 https://github.com/dnouri/nolearn/tree/1659e4811e498dc1f442d8e6486d0831f85255b4/nolearn .但是,页面上没有 Download as Zip 按钮,我也不能用

下载
git clone https://github.com/dnouri/nolearn -branch 1659e4811e498dc1f442d8e6486d0831f85255b4/nolearn

简单地说,

git clone https://github.com/dnouri/nolearn/tree/1659e4811e498dc1f442d8e6486d0831f85255b4/nolearn

也不行。

甚至,我不知道我应该在 Google 中搜索什么!

注意:这是为 Objective 类提供支持的最后一个版本,即不再支持命令 from lasagne.objectives import Objective!

最佳答案

这可以帮助您:

How to clone a single branch in git?

哪里指定:

git clone <url> --branch <branch> --single-branch [<folder>]

文档:

Git Clone

--[no-]single-branch

Clone only the history leading to the tip of a single branch, either specified by the --branch option or the primary branch remote’s HEAD points at. When creating a shallow clone with the --depth option, this is the default, unless --no-single-branch is given to fetch the histories near the tips of all branches. Further fetches into the resulting repository will only update the remote-tracking branch for the branch this option was used for the initial cloning. If the HEAD at the remote did not point at any branch when --single-branch clone was made, no remote-tracking branch is created.

关于git - 下载github项目的特定分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32340337/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com