Git on a Windows Lan

前端 未结 5 1619
礼貌的吻别
礼貌的吻别 2020-12-05 00:17

My colleagues and I are thinking of giving git a try and see if we can easily move to it. We work on a Windows-only environment. On our own machines we already have git set

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 01:03

    For a pure command-line solution, did you try

     git clone file:///local/path/to/repo-name.git
    

    In your case:

     git clone file:///\\mymachine/shared/repo.git
    

    It should work just fine.


    Update August 2014 (4 years later), Git 2.1

    Commit c2369bd by Eric Sunshine and Cezary Zawadka (czawadka) means a simpler UNC path now work:

    Windows: allow using UNC path for git repository

    Eric Sunshine fixed mingw_offset_1st_component() to return consistently "foo" for UNC "//machine/share/foo", cf this thread.

    So this should now work:

    git clone //mymachine/shared/repo.git
    

提交回复
热议问题