sh Git的方法:克隆

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Git的方法:克隆相关的知识,希望对你有一定的参考价值。

# Shallow clone
git clone --depth <number> <path-to-remote>

# When you want to push to a new remote
git remote set-url origin <path-to-remote>
git remote add old <path-to-old-remote>
git fetch --unshallow old

git push origin master
# Remote
git clone <username@host:/path/to/repository>

# Local
git clone </path/to/repository>

以上是关于sh Git的方法:克隆的主要内容,如果未能解决你的问题,请参考以下文章