简体   繁体   English

Git-Xcode-LAN上的单个项目多个开发人员

[英]Git - xcode - single project multiple developer on LAN

Using facility of git which is provided in the xcode I have setup one project. 使用xcode中提供的git工具,我已经设置了一个项目。 I got the understanding about the branch, commit etc from This link 我从此链接获得了有关分支,提交等的理解

Now I want to share this project with the other developer who can make change in this project from his own mac. 现在,我想与可以从自己的Mac对该项目进行更改的其他开发人员共享该项目。 Both the mac is in the same network. 两台Mac都在同一网络中。 So can anyone please let me know how can I achieve it. 所以任何人都可以让我知道我如何实现它。 If any link from where I can refer would be great help. 如果有任何我可以参考的链接会很有帮助。

What Xcode sets up is a local repository that is specific to you, and your Mac. Xcode设置的是您和Mac专用的本地存储库。

What you want is a central repository that developers can clone, so they can work in their own local copy of that repository. 您想要的是开发人员可以克隆的中央存储库,因此他们可以在该存储库的本地副本中工作。 Each developer can push their committed changes to the central (origin) repository. 每个开发人员都可以将已提交的更改推送到中央(原始)存储库。 Others on the team can pull those changes to their local copy. 团队中的其他人可以将这些更改拉到他们的本地副本中。

You can host this central repository in-house, by using OS X Server and Xcode Server. 您可以使用OS X Server和Xcode Server在内部托管此中央存储库。 Alternately, you can use a remote repository, as offered by sites such as GitHub and Bitbucket . 或者,您可以使用由GitHubBitbucket之类的站点提供的远程存储库。

This is a much cleaner solution, and offers far more flexibility and functionality than the problems that will arise trying to work from a single local repository on a shared drive. 与尝试从共享驱动器上的单个本地存储库中出现的问题相比,这是一种更加干净的解决方案,并且提供了更多的灵活性和功能。

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

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