windowns安装git客户端

来源:互联网 发布:法丽达官网 只有淘宝店 编辑:程序博客网 时间:2024/05/17 02:00

第一步下载git 客户端点击打开链接

安装完成后,运行git命令,出现如下界面表示安装成功:


从git服务器上clone项目,需要密码


Windows配置Git SSH,避免clone时要输入git服务器密码

$ ssh-keygen -t rsa -C "nihaoma_ff@163.com"

找到这个文件,用文本打开,复制到git服务器上


在git服务器端存放公钥 authorized_keys 在这个文件中:

[root@localhost /home/git]#mkdir .ssh[root@localhost /home/git]#cd .ssh/[root@localhost /home/git/.ssh]#ls[root@localhost /home/git/.ssh]#touch authorized_keys[root@localhost /home/git/.ssh]#lsauthorized_keys[root@localhost /home/git/.ssh]#vim authorized_keys [root@localhost /home/git/.ssh]#
配置SSH完成后,再次从git服务器上clone项目,不需要密码




0 0