首页 > 其他分享 >vscode如何链接git远程仓库gitee或github

vscode如何链接git远程仓库gitee或github

时间:2022-10-11 10:36:54浏览次数:50  
标签:GitHub vscode gitee github git ssh

vscode如何链接git远程仓库gitee或github

https://blog.csdn.net/G_C_H/article/details/120673227

1.在GitHub上创建新的仓库

2.生成 SSH 密钥

开启 Git Bash

命令行中输入:ssh-keygen -t ed25519 -C "[email protected]"(替换为自己的 GitHub 电子邮件地址)

cd ~/.ssh

cat id_rsa.pub 复制打印信息

GitHub 的 Setting 中找到 SSH and GPG keys

把刚刚 copy 的秘钥复制进去,取个名字,完成添加

验证是否成功:

输入 ssh -T [email protected]

如果打印类似如下信息,即完成:

Hi xxxx! You've successfully authenticated, but GitHub does not provide shell access.

标签:GitHub,vscode,gitee,github,git,ssh
From: https://www.cnblogs.com/andy-chi/p/16778365.html

相关文章

  • 高效的代码迁移方案(使用 git)
    1.把ics2021做个备份,存为ics2021_backup2.来到ics2021/PA,把PA1-2的所有commit压缩成一个commit,使用gitrebase-i<after-this-commit>命令来源:https://sta......
  • ESP32开发环境搭建 IDF3.3.5+VScode
    1、 软件准备:①ESP-IDF:包含ESP32API和用于操作工具链的脚本。②工具链msys32:用于编译ESP32应用程序。③编辑工具VisualStudioCode  注意:工具链和ESP-IDF需......
  • Win10 环境下 vscode 没法在终端使用 conda activate 命令来更换 Python 环境的解决方
    在vscode上激活conda镜像如报下面错误:CommandNotFoundError:Yourshellhasnotbeenproperlyconfiguredtouse'condaactivate'.Ifusing'condaactivate'fr......
  • 一文了解Github Markdown全部语法
    今天在看Win32文档参与编写的说明时,看到里面提及OurdocumentationiswritteninMarkdown,alightweighttextstylesyntax.Ifyou'renotfamiliarwithMarkdown,......
  • VSCode安装教程详细简单版
    https://blog.csdn.net/weixin_43928112/article/details/125813377VSCode插件总结:(rust语言)1.rust-analyzer:语言服务器、自动补全、语法高亮等;2.CodeLLDB:debug功能;3.Ev......
  • vscode的pasteImage的配置
    "pasteImage.path":"${currentFileDir}/imgs/${currentFileName}","pasteImage.basePath":"${currentFileDir}/imgs","pasteImage.forceUnixStyleSeparator"......
  • vscode settings.json配置项
    安装通用插件1、Prettier-Codeformatter2、Vue3Snippets3、VueLanguageFeatures(Volar)安装项目依赖npminstalleslint-plugin-vue@typescrip......
  • Git项目管理快速入门
    Git是什么Git的理解:Git是目前世界上最先进的分布式版本控制系统(没有之一),用于敏捷高效地处理任何或小或大的项目。简单理解就是代码管理工具。使用Git一般处于以下3......
  • Github Pages 和 Hexo 搭建自己的博客
    title:GithubPages和Hexo搭建自己的博客excerpt:hexoblog来了~tags:[hexo,blog,githubpages]categories:[学习,git][学习,hexo]index_img:https://......
  • [IOS]如何结合XCODE使用git以及异常处理
    1.控制台cd到项目目录下,输入命令:gitinit 2.在gitserver创建xxx/project_name.git,输入命令:git--bareinit 3.本地控制台:gitadd.gitcommit-m"firstCommit"git......