有 一些 工具 可以 帮 你 做到 这 一 点 。 For instance HighFlux automatically pulls changes from trunk into your working copy (as long as there are no conflicts): https://www.highflux.io/docs/conflicts#keeping-your-work-up-to-date-with-trunk 可能 还有 其他 工具 可以 为 您 做 同样 的 事情 。
2条答案
按热度按时间qlckcl4x1#
Git并不支持这种特性,最接近的方法就是使用
git-hooks
,当你的团队成员推送时,它会自动拉取所有协作者仓库。然而,这将是相当复杂的设置(特别是更新一个实际的用户工作目录),并将不可避免地导致问题(例如,当你正在工作的一些文件,另一个用户刚刚更新; Git会拒绝拉取,你必须手动执行合并操作)。
SCM(如Git)永远不会自动更新您的工作副本。
u4dcyp6a2#
有 一些 工具 可以 帮 你 做到 这 一 点 。
For instance HighFlux automatically pulls changes from trunk into your working copy (as long as there are no conflicts): https://www.highflux.io/docs/conflicts#keeping-your-work-up-to-date-with-trunk
可能 还有 其他 工具 可以 为 您 做 同样 的 事情 。