原本想写个博客文章的,不过写了大概也是复述 Git for Windows wiki 的内容,所以直接放几个链接上来:
MSYS2 安装
Git for Windows (in MSYS2) 安装
安装前不要着急卸载之前独立的 Git for Windows,在安装完 Git for Windows (in MSYS2) 之后把 Git 安装目录\etc\gitconfig (一般是 C:\Program Files\Git\etc\gitconfig) 拷到 MSYS2 安装目录\etc (一般是 C:\msys64\etc)。
gitconfig 里包含了使用 Git for Windows 安装包设置的一些选项。拷完了需要注意把 gitconfig 中 sslCAInfo 那一行删除,因为写死了 Git for Windows 的绝对路径。
安装完后,后续升级都是通过 pacman 进行,不需要再下载安装包。(终于可以体验滚包的乐趣啦)
MSYS2 安装
Git for Windows (in MSYS2) 安装
安装前不要着急卸载之前独立的 Git for Windows,在安装完 Git for Windows (in MSYS2) 之后把 Git 安装目录\etc\gitconfig (一般是 C:\Program Files\Git\etc\gitconfig) 拷到 MSYS2 安装目录\etc (一般是 C:\msys64\etc)。
gitconfig 里包含了使用 Git for Windows 安装包设置的一些选项。拷完了需要注意把 gitconfig 中 sslCAInfo 那一行删除,因为写死了 Git for Windows 的绝对路径。
安装完后,后续升级都是通过 pacman 进行,不需要再下载安装包。(终于可以体验滚包的乐趣啦)