Whether clone from original/repo makes no sense for contributing to K8s?

When I read document running local k8s :clone-the-repository:

git clone --depth=1 https://github.com/kubernetes/kubernetes.git 

I want to know why there do not clone $user/repo:

 git clone --depth=1 https://github.com/$user/kubernetes.git

if use the standard K8s GitHub workflow, should I clone the $user/repo and develop in my local/repo which clone from $user/repo, and setup the cluster right? this is convenient for debugging our code, and I think setup the cluster which is cloned from original/repo makes no sense.

Am I right?


EDIT

because if I want get the latest code of K8s I can use fetch & rebase from upstream.

It was written that way as a generic method of building (e.g. something you could use in CI). If you intend to develop and submit patches you should use your fork and omit the depth=1

1 Like

hello, why in this pose I cannot make your answer as solution.

It wasn’t enabled for this category^^;;; but it is enabled now!