Stay Hungry,Stay Foolish!

how to colone one github repo completely.

 

https://github.com/fastapi/full-stack-fastapi-template?tab=readme-ov-file

 

How to Use a Private Repository

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

 

posted @   lightsong  阅读(3)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全网最简单!3分钟用满血DeepSeek R1开发一款AI智能客服,零代码轻松接入微信、公众号、小程
· .NET 10 首个预览版发布,跨平台开发与性能全面提升
· 《HelloGitHub》第 107 期
· 全程使用 AI 从 0 到 1 写了个小工具
· 从文本到图像:SSE 如何助力 AI 内容实时呈现?(Typescript篇)
历史上的今天:
2023-12-31 influxDB
2023-12-31 D - Reindeer and Sleigh
2020-12-31 statistical learning - supervised_learning of sklearn
千山鸟飞绝,万径人踪灭
点击右上角即可分享
微信分享提示