how to colone one github repo completely.
https://github.com/fastapi/full-stack-fastapi-template?tab=readme-ov-file
If you want to have a private repository, GitHub won't allow you to simply fork it as it doesn't allow changing the visibility of forks.
But you can do the following:
- Create a new GitHub repo, for example
my-full-stack
.- Clone this repository manually, set the name with the name of the project you want to use, for example
my-full-stack
:git clone git@github.com:fastapi/full-stack-fastapi-template.git my-full-stack
- Enter into the new directory:
cd my-full-stack
- Set the new origin to your new repository, copy it from the GitHub interface, for example:
git remote set-url origin git@github.com:octocat/my-full-stack.git
- Add this repo as another "remote" to allow you to get updates later:
git remote add upstream git@github.com:fastapi/full-stack-fastapi-template.git
- Push the code to your new repository:
git push -u origin master
出处:http://www.cnblogs.com/lightsong/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。