由于每日构建需求, 须要用脚本下载代码, 实现自己主动化编译, 这个脚本是整个系统的一小块功能 #!/bin/bash #@author Liuyang #@date 2015-06-23 function help() { echo "Usage: $0" echo " First argument should be the git repository's address" echo " for example: git@192.168.1.52:a
常见指令整理: (1)检查ssh密钥是否已经存在.GitBash. 查看是否已经有了ssh密钥:cd ~/.ssh.示例中说明已经存在密钥 (2)生成公钥和私钥 $ ssh-keygen -t rsa -C "haiyan.xu.vip@gmail.com"按3个回车,密码为空. Your identification has been saved in /home/tekkub/.ssh/id_rsa.Your public key has been saved in /home/t