简体   繁体   English

VS2022 中的工作树?

[英]Worktree in VS2022?

I need to work in two branches at the same time in VS 2022. I took my git repository and created a new work tree in a separate folder for the feature branch I need to work with via the CLI.我需要在 VS 2022 中同时在两个分支中工作。我使用了我的 git 存储库,并在一个单独的文件夹中为我需要通过 CLI 使用的功能分支创建了一个新的工作树。

When I open that solution in VS, none of the git tooling works and it doesn't even understand the repository it's working with.当我在 VS 中打开该解决方案时,git 工具都不起作用,它甚至不了解它正在使用的存储库。 Git works fine via the CLI though. Git 通过 CLI 可以正常工作。 Does 2022 (17.3) support worktree? 2022 (17.3) 是否支持工作树? I have seen some people say it does and some say it doesn't, but can't seem to find any real documentation on the Git tooling in VS with it.我见过有人说有,有人说没有,但似乎在 VS 中找不到任何关于 Git 工具的真实文档。

As worktrees is an experimental feature of git (check the Bugs section in the worktree docs).由于工作树是 git 的实验性功能(检查工作树文档中的错误部分)。

Therefore tooling support is going to lag behind.因此,工具支持将落后。

Just stick to the CLI when in a worktree.在工作树中只需坚持使用 CLI。

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

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