no message
This commit is contained in:
parent
4b9e7b4e1e
commit
13757b0aae
@ -354,7 +354,7 @@ class CronController
|
||||
$this->runCommand("git commit -m \"$commitMessage\"");
|
||||
|
||||
// 推送到远程主分支
|
||||
$this->runCommand('git push -u origin main'); // 确保将 'main' 替换为你的默认分支名称
|
||||
$this->runCommand('git push -u origin main --force'); // 确保将 'main' 替换为你的默认分支名称, 覆盖
|
||||
|
||||
echo "操作完成:已提交并推送更改[".$this->aArticle['id']."]。\n";
|
||||
}
|
||||
|
||||
@ -19,8 +19,9 @@ ssh目录
|
||||
ssh安装
|
||||
sudo apt update
|
||||
sudo apt install openssh-client
|
||||
ssh-keygen -t rsa -b 4096 -C "github-sg01@gemsub.online"
|
||||
ssh-keygen -t rsa -b 4096 -C "erdama123@outlook.com"
|
||||
生成地址写 /var/www/.ssh/id_rsa_邮箱不要后缀 dahuaidan123123
|
||||
别忘了权限
|
||||
|
||||
ssh权限
|
||||
chown -R www-data:www-data /var/www/.ssh
|
||||
|
||||
Loading…
Reference in New Issue
Block a user