msysgit on windows — what should I be aware of, if any?

前端 未结 5 818
你的背包
你的背包 2020-12-02 08:44

This is related to another question I asked recently.

When installing msysgit, the installer presents 3 options related to system path:

  1. Never change

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 09:22

    On windows (this is less of an issue on other systems, in my very humble opinion...), you must be VERY aware of crlf issues, and note that (Unless they've changed this in the very latest version of Git, which I believe they may have - or if you're using a very old version of Git), autocrlf is enabled by default, unlike all the other git installations.

    Also note that unless you use the very latest version of msysgit, soon to be out this week if I recall correctly from the mailing list, your repository size can not be larger than 2GB, total.

    Additionally, Windows is wierdly case insensitive but /sometimes/ case preserving - keep that in mind! (This does not confuse git neccessarily - but it can and does confuse the user of the git repo).

    Finally, git is substantially slower on windows than it is on linux, although it is (in my limited experience) faster than the alternatives.

    Now, regarding the path...

    Unless I'm mistaken, you should be able to just ensure that the main git binary is in the path - and that binary should then take care of referencing the other git components... But I have not tested this.

提交回复
热议问题