一. 在码云上创建好仓库地址
标题打开码云地址 https://gitee.com/ ,输入账号和密码进入。
点击仓库的+创建一个新的仓库
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200119160745295.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MDY5NDcyNA==,size_16,color_FFFFFF,t_70)
创建成功之后会有一些简要的命令操作
![在这里插入图片描述](https://img-blog.csdnimg.cn/2020011916214561.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MDY5NDcyNA==,size_16,color_FFFFFF,t_70)
打开我的电脑,进入指定盘符,分为两种情况
1.没有项目目录
执行创建git 仓库命令即可
mkdir 'your folder name'
cd 'your folder name'
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin "your depository url"
git push -u origin master
2.已经存在项目
执行创建git 仓库命令即可
cd 'existing git repo'
git remote add origin "your depository url"
git push -u origin master