其中的換行符被替換成了空格,若輸出時保留換行,應該使用以下命令:
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