Windows系统git bash中添加wget

新逸网络 1.4K 0

Windows中git bash完全可以替代原生的cmd,但是对于git bash会有一些Linux下广泛使用的命令的缺失,比如wget命令。

在此,以安装wget命令为例,其他命令可以采用相同的方式解决:

1、下载wget二进制安装包,地址:https://eternallybored.org/misc/wget/

2、解压安装包,将wget.exe 拷贝到C:\Program Files\Git\mingw64\bin\ 下面;(或者解压之后将解压文件中wget.exe的路径添加到环境变量中)

至此,完成安装;

在git bash中执行 wget验证即可,done;

其他命令添加均可参考;

参考资料:
https://xingtingyang.com/554.html


作者:436宿舍
链接:https://www.jianshu.com/p/fb6601795011
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


相关链接:

  1. Windows binaries of GNU Wget
  2. git-scm

本文链接:https://www.xinac.com/article/239.html

原文链接:https://blog.xinac.cn/archives/git-win-wget

发表评论 取消回复
表情 图片 链接 代码

分享