之前git上传下载代码都是用的http方式,但是今天遇到个大文件上传的时候,http方式上传超出大小限制了413 request entity too large,所以改成了用ssh方式上传,简单记录下ssh的配置方式. 并且有一个工程下载的时候也报错了,错误信息如下: fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed 也可以用下面的方法解决. 代码用Eclipse管理,用ht
用ssh-keygen生成公匙和私钥 d:\c\learnc>ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/Mize/.ssh/id_rsa): Created directory '/c/Users/Mize/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphra