官术网_书友最值得收藏!

Using Chocolatey

This is my preferred way to install Git for Windows on Windows 10. It installs the same package as before, but in one line. If you have not heard of Chocolatey, stop everything, and go learn a bit more. It can install the software with a single command; you don't have to use click-through installers anymore!

Chocolatey is very powerful, and I use it in combination with Boxstarter to set up my dev machines. If you are in charge of setting up machines for developers on Windows, it is definitely worth a look.

Let's see how you would install Git using Chocolatey. I assume you have Chocolatey installed (https://chocolatey.org/install) already (it's a one-liner in Command Prompt). Then, simply open the Administrator Command window, and type this command:

$ choco install git -params '"/GitAndUnixToolsOnPath"'  

This will install Git and the BASH tools, and add them to your path.

主站蜘蛛池模板: 高州市| 富阳市| 赣州市| 武宁县| 库伦旗| 峨边| 樟树市| 葫芦岛市| 和田县| 石棉县| 钟祥市| 黔南| 龙口市| 黄大仙区| 闽侯县| 卓尼县| 庆元县| 镇巴县| 翼城县| 济宁市| 泾川县| 乌拉特中旗| 瓦房店市| 伊春市| 长春市| 万荣县| 玉环县| 栖霞市| 涞水县| 永州市| 马鞍山市| 左权县| 九江县| 怀远县| 原平市| 旬阳县| 枝江市| 湖州市| 鞍山市| 甘谷县| 云梦县|