简体   繁体   English

从git同步本地项目文件夹

[英]Sync local project folder from git

I've created a git repository where,my colleague are pushing codes for front-end section of application as contributors and I'm pushing codes backend section. 我已经创建了一个git存储库,我的同事在其中推送应用程序的前端部分的代码作为贡献者,而我推送的代码后端部分。

Is it possible to sync our project folders in our respective local machine from our combined repository from git ? 是否可以从git的组合存储库中同步我们各自本地计算机中的项目文件夹?

ie Get frontend codes in my local machine contributed by my colleagues and backend codes in their machine that has been pushed to repository by me. 例如,获取由我的同事贡献的本地计算机中的前端代码,以及由我推送到存储库中的后端计算机中的后端代码。

Me and my colleague are new to git and know just basic stuffs only about git. 我和我的同事是git的新手,只了解git的基本知识。 It would be very thankful if anyone could guide us on this topic. 如果有人能在这个话题上指导我们,将非常感谢。

FYI: We are pushing into same branch. 仅供参考:我们正在进入同一个分支。

There is some ways to do that, per example, you can use some orchestration tool like Ansible to automate the build of the project writing a custom pipeline that download both projects and sync it for you. 有一些方法可以做到这一点,例如,您可以使用诸如Ansible之类的编排工具来自动化项目的构建,编写一个自定义管道来下载两个项目并为您同步。

https://docs.ansible.com/ansible/latest/modules/git_module.html https://docs.ansible.com/ansible/latest/modules/git_module.html

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

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