From effcb133baf29be27e7bfe148dc23a4211084653 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Wed, 14 Jul 2021 10:50:59 -0700 Subject: [PATCH] doc: remote bash in preparation and add additional line of text --- source/_posts/同步GitLab和GitHub.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/_posts/同步GitLab和GitHub.md b/source/_posts/同步GitLab和GitHub.md index e928808..f710f46 100644 --- a/source/_posts/同步GitLab和GitHub.md +++ b/source/_posts/同步GitLab和GitHub.md @@ -16,9 +16,14 @@ tags: # 事前准备: 检查当前的Git进程: -```bash +``` git remote -v origin https://github.com/example/example.git(获取) origin https://github.com/example/example.git(推送) ``` -在我当前的场景中,为了简化操作我必须保持独特的各种GitLab账户,我将切换使用SSH而不是HTTPS。因此,您必须先将SSH密钥添加到每个GitHub和GitLab的账号上。 \ No newline at end of file +在我当前的场景中,为了简化操作我必须保持独特的各种GitLab账户,我将切换使用SSH而不是HTTPS。因此,您必须先将SSH密钥添加到每个GitHub和GitLab的账号上。 + +删除当前的origin远程: +``` +git remote remove origin +``` \ No newline at end of file