提交到Gitee仓库

文章目录

注册

注册并激活码云账号( 注册页面地址:https://gitee.com/signup

可以在自己C盘/用户/用户名/.ssh 可以看到 有id_rsa.pub 以前在GitHub注册时搞过,打开id_rsa.pub复制

配置公钥

生成并配置 SSH 公钥

  1. 将id_rsa.pub的内容复制到 下面页面的公钥中,会自动生成标题,然后点击确定
  2. 然后点击确定 弹出验证身份,是你注册时的密码
// 复制代码
   PS D:\笔记之前端\笔记之项目\微信小程序\笔记\code\项目\project_shop\uni-shop-2> ssh -t git@gitee.com
   The authenticity of host 'gitee.com (180.76.198.77)' can't be established.
   ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
   Are you sure you want to continue connecting (yes/no/[fingerprint])? yes  // 这里输入yes
   
   Warning: Permanently added 'gitee.com,180.76.198.77' (ECDSA) to the list of known hosts.
   Hi xrkhy(@xrkhy)! You've successfully authenticated, but GITEE.COM does not provide shell access.
   Connection to gitee.com closed.  // 这里successfully代表成功

创建空白的码云仓库

  1. 创建空白的码云仓库
  2. 写项目名字以及选中公开 去创建

把本地项目上传到码云对应的空白仓库中

选中SSH模式 然后在项目根目录执行 2 3 行命令

右击项目根目录 -->在外部资源管理器打开-->shift+右击-->powershell窗口

bash 复制代码
PS D:\...项目\project_shop\uni-shop-2> git init

PS D:\...\项目\project_shop\uni-shop-2> git remote add origin git@gitee.com:xrkhy/uni-shop2.git

git add .

git commit -m "首次提交无畏契约项目"

git push -u origin master

PS D:\...\项目\project_shop\uni-shop-2> git push -u origin master
Enumerating objects: 490, done.
Counting objects: 100% (490/490), done.
Delta compression using up to 16 threads
Compressing objects: 100% (407/407), done.
Writing objects: 100% (490/490), 336.54 KiB | 1.04 MiB/s, done.
Total 490 (delta 91), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (91/91), done.
remote: Powered by GITEE.COM [GNK-6.4]
To gitee.com:xrkhy/uni-shop2.git
 * [new branch]      master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
相关推荐
m0_5261194014 天前
ssh key生成,gitee配置ssh
运维·gitee·ssh
我最爱吃鱼香茄子14 天前
【保姆级】Git配置用户名和邮箱(全局/局部)解决提交记录不识别、贡献图不亮问题
git·gitee·github·小白教程·git配置·程序员开发工具
++==15 天前
git的安装以及基本命令使用、远程仓库的操作、vscode连接远程仓库进行项目的上传、gitee的使用
linux·git·gitee
QiLinkOS17 天前
QiLink开源生态的三维重构:基于时间、空间与社会价值的底层规则创新白皮书
大数据·c++·人工智能·科技·算法·gitee·开源
IT WorryFree17 天前
GitHub / Gitee / Gitea / GitLab 四平台完整对比(定位、优缺点、适用场景)
gitee·github·gitea
效能革命笔记19 天前
Gitee Team 如何支撑关键领域行业 DevSecOps 落地?
gitee
故渊at21 天前
第二板块:Android 四大组件标准化学理 | 第八篇:Service 后台执行实体与优先级
android·gitee·service·前台服务·后台服务
故渊at21 天前
第二板块:Android 四大组件标准化学理 | 第九篇:BroadcastReceiver 事件分发与有序广播
android·gitee·broadcast·广播·动态注册·静态注册
毛豆的毛豆Y21 天前
新上架!给 Gitee 用户做了个工具:CopoGit
gitee
hashiqimiya21 天前
每日android布局xml文件
android·xml·gitee