Use Cygwin or msysGit version of Git, or both?

后端 未结 6 1860
我寻月下人不归
我寻月下人不归 2020-12-24 07:04

I am running Windows 7, I just installed Cygwin for the first time today so I have been playing around with it. I am now wanting to start using Git as well.

From wha

6条回答
  •  [愿得一人]
    2020-12-24 07:47

    If by some unlucky twist of fate, you're dealing with a git repository where some commits in its history are say, a few gigs in size, then you will run out of memory with MSysGit, because as of right now, only a 32-bit version is available (there is a 64bit version that is in Pre-apha, but as of right now, it still fails some test and is therefore not suitable for production). Only in this situation does a 64 bit version of Git become a necessity.

    UPDATE: There is a way by which you can still use 64bit Git without going the Cygwin route:

    1. Install Vagrant
    2. Install VirtualBox
    3. Add this VagrantFile to an empty folder
    4. Tweak it to your needs
    5. On the command prompt cd to the new folder and
      1. Issue the command "vagrant up". Grab a coffee while this completes.
      2. Next, issue the command "vagrant ssh"

    You now have a Linux virtual machine with 64-bit git installed. Next, within the virtual machine:

    1. cd /vagrant
    2. git clone

    Let it complete and you will have a 64 bit installation of Git controlling your repository on Windows.

提交回复
热议问题