From d157e6c32b3194034aa54e74d2be250e0947da6f Mon Sep 17 00:00:00 2001 From: syx_computer Date: Sat, 11 Oct 2025 22:10:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=9F=E6=96=B0=E4=BA=86=E6=B6=88=E9=99=A4or?= =?UTF-8?q?igin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Readme.md b/Readme.md index 4ffb427..ec42d2e 100644 --- a/Readme.md +++ b/Readme.md @@ -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"