- https://gitforwindows.org/ 下载git64bit安装文件,安装过程省略,可以一路默认安装.
- 安装后,将git install path /bin/比如我的F:/git/bin加入到环境变量path中.
- cmd git --version
git version 2.21.0.windows.1 - 说明git安装成功
- 新建k8s目录 F:\k8s
- F:\k8s\ git clone https://github.com/kubernetes/kubernetes.git
- 过程中出错
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
8 .解决方案 git config --global http.postBuffer 524288000
9.后面的数字我也不知道为什么是这个,我也是搜索得来的.
10.正常clone k8s源代码成功
11.给idea 安装 go的plugin:ctrl+alt+s ->plugin-->marketplace,搜索go 安装即可
12.导入 idea中