如何在Parallels中运行Windows 8的Mac上设置Git [英] How to setup Git on a Mac with Windows 8 running in Parallels
问题描述
我想知道在Macbook Pro上安装Git的最佳方式是什么?OS X Mountain Lion 10.8与Windows 8 Pro在Parallels?不太确定什么是最好的工作流程。我应该在两个平台上安装Git还是应该将所有文件存储在一个平台上并在其上安装Git?
我之所以问这个问题是因为我打算在Windows上使用Visual Studio进行学校项目,并使用Sublime Text / XCode来开发Web开发和iOS应用程序。
谢谢。
$ b $最好的做法是在两个工作站上安装Git,每个工作站都有一个完整的repo。理想情况下,您会从无论是工作站,还是GitHub的git repo托管服务。
这样:
- 您可以在每台计算机上获得完整的回购(包含所有文件的完整历史记录)
- 即使没有网络,您也可以在其中任何一台上运行
- 您可以将您的工作保存在云端上
问题可以在设置中进行。
请参阅: p>
- :
git config - 全局core.filemode false
- Git(GitHub):多平台开发和autocrlf选项?
您可以将autocrlf
设置为true
在OS X上以及在你的情况下在Windows上。
(即使我更喜欢它设置为false )
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?
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?
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.
Thanks.
The best practice is to install Git on both workstations, each of them with a full repo.
Ideally, you would push from either workstation to a git repo hosting service like 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:
- "File permission issue with Mac/Windows when using git":
git config --global core.filemode false
- "Git (GitHub): Multiplatform development and autocrlf option?"
You can setautocrlf
totrue
on OS X as well as on Windows in your case.
(even though I prefer it set to false)
这篇关于如何在Parallels中运行Windows 8的Mac上设置Git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!