跟新了消除origin

This commit is contained in:
syx_computer
2025-10-11 22:10:06 +08:00
parent 12bbede917
commit d157e6c32b

View File

@@ -100,9 +100,15 @@ git merge (分支)
git remote -v
```
- 若未显示 origin 或 URL 不正确,需关联或更新远程仓库:
- 移除当前origin
```shell
git remote remove origin
```
- 若未显示 origin 或 URL 不正确,需关联或更新远程仓库:
```shell
git remote add origin变量名代指地址 (地址)/(用户名)/(仓库名).git
git remote add origin ssh://git@8.152.216.76:2222/xdr_gitea/JavaWeb.git
```
@@ -117,10 +123,6 @@ git push -u origin master分支名
#### 1. 彻底清除旧密钥记录
powershell
复制
```
# 删除该主机所有旧的密钥记录
ssh-keygen -R "8.152.216.76:2222"