tfs - 同步在团队资源管理器中有什么作用?

标签 tfs visual-studio-2017

我目前在一个使用 的项目中TFS Git 作为代码库。在 Visual Studio 中,在 Team Explorer -> Sync 下,有一个名为 的选项。同步 .现在我熟悉了 Fetch、Pull 和 Push 操作,但 Sync 对我来说是新的。

任何想法这在幕后做什么?

最佳答案

Visual Studio、VSTS 和 TFS 中的 Git 是 标准 Git .虽然 同步不是 Git 命令 , 一些 GUI 环境提供同步按钮 更新您的本地文件 将本地更改推送到远程 (您的托管存储库)。

enter image description here

The Sync button is available on the Team Explorer pane and and also displayed after you create a commit using the extension. The sync tool enables you to select how you want to update the project:

  • sync: performs a git pull and a git push.
  • fetch: performs a git fetch which retrieves any commits on from your remote without merging them.
  • pull: performs a git pull.
  • push: performs a git push.


您还可以导航到 同步 通过选择 从更改 View 查看同步 提交后立即。

enter image description here

关于tfs - 同步在团队资源管理器中有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47257586/

相关文章:

visual-studio - Visual Studio 2012 项目失去了到 TFS 的链接

sharepoint - 从 Team Foundation Build 调用的 Powershell 脚本远程执行

sql - 如何从单独的脚本创建数据库?

visual-studio-2017 - 适用于 Visual Studio 2017 的 VCVARSALL.BAT

c++ - 如何将 VS、C++、OpenGL 应用程序部署到第二台计算机?

tfs - 如何在 VSTS/TFS 版本中设置 ASPNETCORE_ENVIRONMENT?

TFS/Visual Studio Online 生成定义备份

c# - 为什么此方法组转换在 C# 7.2 及更低版本中不明确?

Chrome 开发者控制台中的 Typescript 文件已过期

visual-studio - NuGet TypeScript 工具 :Why the added version of typescript compiler is still not available?