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 @ 2024-12-31 22:47  lightsong  阅读(14)  评论(0)    收藏  举报
千山鸟飞绝,万径人踪灭