其中的换行符被替换成了空格,若输出时保留换行,应该使用以下命令:
git
echo "${foo}"ssh
2.为不一样的主机,指定不一样的ssh密钥ide
Host gitolite-as-alice HostName git.company.com User git IdentityFile /home/whoever/.ssh/id_rsa.alice IdentitiesOnly yes Host gitolite-as-bob HostName git.company.com User git IdentityFile /home/whoever/.ssh/id_dsa.bob IdentitiesOnly yes