Skip to content

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

Open
@fanghuaqi

Description

@fanghuaqi

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!!!

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions