git clone 与 go get


go下载包两种命令:

go get 目录

git clone https://+目录

 

有时候会报错说remote:Not Found

就把目录别写的那么深,或者后面加上个.git即可

 

例如,我想下载github.com/opentracing-contrib/go-stdlib/nethttp

我尝试了下面这些:

git clone https://github.com/opentracing-contrib/go-stdlib/nethttp

git clone https://github.com/opentracing-contrib/go-stdlib

git clone https://github.com/opentracing-contrib

git clone https://github.com/opentracing-contrib/go-stdlib/nethttp.git

结果都说不存在romote:Not Found,直到试到下面这个,才下载出来了:

git clone https://github.com/opentracing-contrib/go-stdlib.git

这里就提供了一种当报错remote:Not Found该怎么办的一种解决办法,仅供参考。

 

注意切换到哪个目录 写命令git clone ,就下载到哪里

E:\Go\src\mtauth\vendor\github.com> 比如我切换到到这里写git clone 命令,就下载到这个路径下了

 

That's all

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM