简体   繁体   English

如何在 Visual Studio 2019 中创建本地 git 存储库?

[英]How to fork a local git repository in Visual Studio 2019?

I have a solution / project in Visual studio 2019. Using the git functions in VS I have created a local only repository.我在 Visual Studio 2019 中有一个解决方案/项目。在 VS 中使用 git 函数我创建了一个仅限本地的存储库。 ( for various reasons I will not create a remote repo for this solution / project ) (由于各种原因,我不会为此解决方案/项目创建远程仓库)

How can I fork the solution to a new local repo, forking all branches?如何将解决方案分叉到新的本地仓库,分叉所有分支?

Fork, not clone.分叉,而不是克隆。

Many thanks for your help on this one非常感谢您对此的帮助

How can I fork the solution to a new local repo, forking all branches?如何将解决方案分叉到新的本地仓库,分叉所有分支?

Just clone it.只需克隆它。

You're probably misunderstanding something, because in most cases you don't want to create local clones.你可能误解了一些东西,因为在大多数情况下你不想创建本地克隆。

Fork, not clone.分叉,而不是克隆。

A fork is pretty much a clone.叉子几乎是一个克隆。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM