Skip to content

Latest commit

 

History

History
62 lines (33 loc) · 1.75 KB

File metadata and controls

62 lines (33 loc) · 1.75 KB

如何使用 github 和 gitee 来管理代码仓库

For English version please switch to the English version

https://github.com/principleWindows/gitMem

https://gitee.com/principlewindows/gitMem


武汉大学计算机学院胡继承教授授课课程教学资源站点

若有评论、建议或疑问请在评论区留言或发电子邮件给我

1 git, github and gitee

本课程采用 git 作为项目管理工具并管理课程相关教学、训练及练习资源。 建议大家以 github 作为主要的远程仓库方便获取丰富的程序员社区资源, 而将 gitee 作为备份远程仓库来备份源码以备不时之需。尽量同时采用 github 与 gitee 来保存个人的源码及编码资源。

git 下载地址 https://git-scm.com/downloads

从上述官网下载 git 的最新版本进行缺省安装即可。

1.1 SSH Connection

使用 git 工具来管理项目, 通常会使用 SSH 来连接代码仓库。win10 下如何 安装 SSH client 参见:

win11 安装SSH

生成并使用 ssh-key:

参见 ssh-key

1.2 Push to Remote Repositories

同步本地仓库到 github 与 gitee 的方法参见:

同步推送本地仓库到 gitee 与 github

1.2.1 github

github extension 的安装参见教学幻灯片。

1.2.2 gitee

事实上 github extension 已经可以涵盖 gitee extension 的作用。 gitee 的 VS extension 下载地址:

https://marketplace.visualstudio.com/items?itemName=GiteeInc.GiteeExtension