笔者最近在开始使用开放原子开源基金会的代码协作平台AtomGit。它单个仓库容量比较大,默认单个代码库具备 2GB Git 存储空间,以及 5GB LFS 存储空间。下文分享笔者讲图形化工具tortoiseGit上传至AtomGit的经验
参考资料:AtomGit教程
首先tortoiseGit的安装和使用教程很多,笔者不再重复赘述
使用tortoiseGit提交代码AtomGit仓库步骤
1.打开PuTTYgen生成ssh密钥
![image.png](https://dl-harmonyos.51cto.com/images/202403/14b4e184604eddffcbe0255c29f2eef1df12fd.png?x-oss-process=image/resize,w_621,h_124)
2.将生成的密钥粘贴至 atomgit 中指定位置。
![image1.png](https://dl-harmonyos.51cto.com/images/202403/b51ed99629050b85e6d902ce97535d0bcc3877.png?x-oss-process=image/resize,w_820,h_875)
![image13.png](https://dl-harmonyos.51cto.com/images/202403/f374aa8233f72e3f7fb582262ab9f1fafa3bf3.png?x-oss-process=image/resize,w_820,h_935)
然后保存密钥到本地。
![image1.png](https://dl-harmonyos.51cto.com/images/202403/8111e8f300ebd4e67057581ad6f3d494633cb5.png?x-oss-process=image/resize,w_820,h_875)
3.在atomgit 安全中心 新建 个人访问令牌 ,勾选 作用范围 。
![image.png](https://dl-harmonyos.51cto.com/images/202403/09ae0846209dc81c62b990e16c491efa0c285f.png?x-oss-process=image/resize,w_820,h_1745)
记住 个人访问令牌 ,只会可见一次。
![image5.png](https://dl-harmonyos.51cto.com/images/202403/a8e4f00046d262d855148870e226f3fbcf7d44.png?x-oss-process=image/resize,w_820,h_955)
4.本地新建文件夹,新建 版本库
![image.png](https://dl-harmonyos.51cto.com/images/202403/675269b6354debb4d01254bfabccb5124345b7.png?x-oss-process=image/resize,w_576,h_189)
5.打开 tortoiseGit设置 ,配置git设置,设置用户名是atomgit 用户名 和 邮箱 。
![image7.png](https://dl-harmonyos.51cto.com/images/202403/973b5b0506d2c92036848475e0620d2ec2ee7a.png?x-oss-process=image/resize,w_820,h_1253)
6.在创建的仓库里面复制 HTTPS 的url,粘贴到 远端 的URL和推送URL上。点击 保存
![image.png](https://dl-harmonyos.51cto.com/images/202403/46b12829727e3c70c3a652a4d3fe990918acdc.png?x-oss-process=image/resize,w_820,h_925)
7.之后在git中填写 atomgit用户名 和 atomgit个人访问令牌 。
![image11.png](https://dl-harmonyos.51cto.com/images/202403/1218a0544dc20e4086a735b0e0b71f3d098bc9.png?x-oss-process=image/resize,w_820,h_1008) |