创建SSH安全秘钥
![2345_image_file_copy_49.jpg 2345_image_file_copy_49.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_ebc736df4c5c4ed891201bea9f57f122.jpg?x-oss-process=image/resize,w_1400/format,webp)
在gitee中查看ssh公钥
![2345_image_file_copy_51.jpg 2345_image_file_copy_51.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_5c113d9fb82d498f937f0fb8c05506c4.jpg?x-oss-process=image/resize,w_1400/format,webp)
查看Gitee是否链接: ssh -T git@git.oschina.net
![2345_image_file_copy_52.jpg 2345_image_file_copy_52.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_8dc41dbde03a4b909638d353ff701ce0.jpg?x-oss-process=image/resize,w_1400/format,webp)
创建gitee仓库
![2345_image_file_copy_53.jpg 2345_image_file_copy_53.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_60822a4b53a842fba4bf4f6b2dffc201.jpg?x-oss-process=image/resize,w_1400/format,webp)
![2345_image_file_copy_54.jpg 2345_image_file_copy_54.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_45f0891371394a4fafc7f4a46c094077.jpg?x-oss-process=image/resize,w_1400/format,webp)
创建远程仓库下载文件夹
![2345_image_file_copy_55.jpg 2345_image_file_copy_55.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_2cb92c70455b4a60ac626a6ebc720769.jpg?x-oss-process=image/resize,w_1400/format,webp)
把远程仓库的项目克隆本地到:second_git_repos
在下载下来的项目中添加Test.java
![2345_image_file_copy_57.jpg 2345_image_file_copy_57.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_e3d7966149534d6aa6dcc59736e06623.jpg?x-oss-process=image/resize,w_1400/format,webp)
![2345_image_file_copy_58.jpg 2345_image_file_copy_58.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_33e4cca9da134071bc4a4e4a12bc6b53.jpg?x-oss-process=image/resize,w_1400/format,webp)
向刚刚创建好的Test.java里面填写文件
![2345_image_file_copy_59.jpg 2345_image_file_copy_59.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_04b22ea277f74c1bbd47ab3f18404c14.jpg?x-oss-process=image/resize,w_1400/format,webp)
把Test.java加到本地仓库里面
![2345_image_file_copy_60.jpg 2345_image_file_copy_60.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_0be11ab3caee40d4af8523fa1b45f2f0.jpg?x-oss-process=image/resize,w_1400/format,webp)
把远程仓库的项目下载到本地:git pull 【文件名】
把本地仓库的内容 推送到远程仓库 (重点★★★)
![2345_image_file_copy_61.jpg 2345_image_file_copy_61.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_2f66f33641f74d0b8b823558b668fbb8.jpg?x-oss-process=image/resize,w_1400/format,webp)
其中提交出现异常
异 常 为 下一篇文章介绍
![2345_image_file_copy_62.jpg 2345_image_file_copy_62.jpg](https://ucc.alicdn.com/pic/developer-ecology/rl5vva6ll5qjc_5a6abc4c80cb41ce800188aee8b9c2f1.jpg?x-oss-process=image/resize,w_1400/format,webp)