指定 ssh 命令使用时的签名文件

进入 app的.git/config 文件下

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 Engine:
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
        precomposeunicode = true
        # 添加一行这个就行
        sshCommand = ssh -i ~/.ssh/id_rsa_gayhuber
[remote "origin"]
        url = git@github.com:gayhuber/php-fpm.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master