我目前在一个使用 的项目中TFS Git 作为代码库。在 Visual Studio 中,在 Team Explorer -> Sync 下,有一个名为 的选项。同步 .现在我熟悉了 Fetch、Pull 和 Push 操作,但 Sync 对我来说是新的。
任何想法这在幕后做什么?
最佳答案
Visual Studio、VSTS 和 TFS 中的 Git 是 标准 Git .虽然 同步不是 Git 命令 , 一些 GUI 环境提供同步按钮 更新您的本地文件 和 将本地更改推送到远程 (您的托管存储库)。
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 agit 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 查看同步 提交后立即。
关于tfs - 同步在团队资源管理器中有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47257586/