gethexon / hexon

Let's hexo online.
https://hexon-demo.yujianghao.cn/#/
GNU General Public License v3.0
118 stars 25 forks source link

关于git备份操作 #2

Closed A2Data closed 2 years ago

A2Data commented 3 years ago

建议增加 git配置项,主要针对 码云 github gitlab等仓库 可以多仓库管理。 做高可用备份。 命令都是一套,主要是配置管理。大概如下

配置github.com

Host 数据源名称 HostName github.com IdentityFile ~.ssh\id_rsa --- key PreferredAuthentications publickey User name

配置SQL

Host gitlab HostName gitlab.com IdentityFile ~.ssh\id_rsa_sql --key文件 PreferredAuthentications publickey User name

配置SQLSQ

Host 码云 HostName github.com IdentityFile ~.ssh\sqlsq_id_rsa PreferredAuthentications publickey User jackfeng