简体   繁体   English

如何在运行Parallels的Windows 8的Mac上设置Git

[英]How to setup Git on a Mac with Windows 8 running in Parallels

I'm wondering what is the best way to setup Git on a Macbook Pro both OS X Mountain Lion 10.8 with Windows 8 Pro in Parallels? 我想知道在Macbook Pro上同时安装OS X Mountain Lion 10.8和Windows 8 Pro的Macbook Pro上安装Git的最佳方法是什么?

I'm not too sure what is the best work flow. 我不太确定最佳的工作流程是什么。 Should I be installing Git on both platforms or should I have all my files stored on one platform and install Git just on that? 我应该在两个平台上都安装Git还是应该将所有文件都存储在一个平台上并仅在该平台上安装Git?

The reason why I'm asking is because I intend to use Visual Studio on Windows for school projects and use Sublime Text/XCode to work on web development and iOS apps. 我问的原因是因为我打算将Windows上的Visual Studio用于学校项目,并将Sublime Text / XCode用于Web开发和iOS应用程序。

Thanks. 谢谢。

The best practice is to install Git on both workstations, each of them with a full repo. 最佳实践是在两个工作站上都​​安装Git,每个工作站都有完整的存储库。
Ideally, you would push from either workstation to a git repo hosting service like GitHub. 理想情况下,您可以从任一工作站推送到git repo托管服务(例如GitHub)。

That way: 那样:

  • you get the full repo (with the full history for all files) on each computer 您将在每台计算机上获得完整的存储库(包含所有文件的完整历史记录)
  • you can work on either one of them even without network 即使没有网络,您也可以使用其中任何一个
  • you can save your work on the cloud 您可以将您的工作保存在云中

The issue can be around setting. 问题可能与设置有关。
See: 看到:

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

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