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

前端 未结 1 391
不知归路
不知归路 2021-01-15 00:52

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 wo

相关标签:
1条回答
  • 2021-01-15 00:55

    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 set autocrlf to true on OS X as well as on Windows in your case.
      (even though I prefer it set to false)
    0 讨论(0)
提交回复
热议问题