跟新了消除origin
This commit is contained in:
12
Readme.md
12
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"
|
||||
|
||||
Reference in New Issue
Block a user