Nuclei-Software / nuclei-linux-sdk

Nuclei RISC-V Linux Software Development Kit
Apache License 2.0
39 stars 11 forks source link

how to do git clone clean source code 如何Clone下载干净的代码 #10

Open fanghuaqi opened 1 year ago

fanghuaqi commented 1 year ago

How to do git clone clean source code

If your github access is not good, please download the full existing git repo archive from nuclei-linux-sdk-2024.09.02.tar.xz

Github访问很慢就直接下载我们提前准备好的完整仓库,不经常更新,需要自己手动fetch更新 nuclei-linux-sdk-2024.09.02.tar.xz

tar -xJvf nuclei-linux-sdk-2024.09.02.tar.xz

This repo is a big repo with many submodule repos, a full clone required about 10G space, and rely on a stable network connection to github.com, if you don't have good network connection, please try other ways list in the bottom

Basic clone source code step can be found in https://github.com/Nuclei-Software/nuclei-linux-sdk?tab=readme-ov-file#clone-repo , please read it carefully including the comment in it.

NOTE When you clone source code, you can add --depth 1 to speed up, see https://cloud.tencent.com/developer/article/2212263

If you are switch to a new branch, remember to sync and update submodule source code, and check git status to make sure source code is clean.

git switch require git version >= 2.23, see https://git-scm.com/docs/git-switch

For example, here I switched to feature/fsl branch, successful submodule update like this:

image

If you get status message like this, it means the submodule repo is not updated

image

WARNING: No longer available now: When you do submodule update, you get error message like this, please check github connection or switch to gitee mirror of nuclei linux sdk https://gitee.com/Nuclei-Software/nuclei-linux-sdk

gitee mirror project https://gitee.com/Nuclei-Software/linux is blocked now! No longer accessable.

image

Other ways to get source code

NOTICE: We don't provide any tech support for using github mirror website!!!

fanghuaqi commented 1 year ago

Gitee Mirror is no longer avaiable now, this linux repo https://gitee.com/Nuclei-Software/linux is blocked due to big size.

Please try other method to download source code mentioned in #12

image

image

fanghuaqi commented 2 months ago

We have just update a new full repo for this nuclei linux sdk in 2024.09.02, see https://drive.weixin.qq.com/s?k=ABcAKgdSAFcgGSJQvc