git安装
进入网站(http://git-scm.com/download)下载相应版本的gitee进行安装
git初始配置
进入gitee官方教程(https://gitee.com/help/articles/4107)进行初始配置
gitee远程仓库建立
进入gitee官网注册账号并创建仓库
创建本地仓库及仓库基础操作
https://gitee.com/help/articles/4114#article-header0
SSH公钥配置
这里按自己需要进行配置,后面进行push或pull操作则需要进行配置,在以下网站可查看教程
https://gitee.com/help/articles/4181
注意:将ssh公钥配置到gitee时,需要直接在个人设置中进行添加,如果在仓库管理页面添加则只能进行pull操作,不能进行push操作
关联本地仓库与远程仓库
git remote add 本地仓库名 码云地址(https/ssh)
需要设置电脑保存密码,不然每次上传时都要输入。
仓库基础操作
https://gitee.com/help/articles/4114#article-header0
基本流程
(需要配置好ssh)
git add .
git commit -m "说明"
git pull 仓库名 master
git push 仓库名 master
在进行push之前需要进行pull合并。
本文仅仅为自己学习笔记。