1.首先在码云上创建一个git仓库,点击下图加号即可创建git仓库。
2.本地先安装git,参考https://www.cnblogs.com/ximiaomiao/p/7140456.html。
3.安装完git之后,本地创建文件夹,点击鼠标右键使用git bash命令。进入git命令行界面。
4.如果没有登录git先登录
git config --global user.email "you@example.com" //邮箱为你的注册码云账号时绑定的邮箱
git config --global user.name "Your Name" //用户名为你码云注册时的登录名
5.使用 git init 命令 //初始化一个git 本地仓库此时会在本地创建一个 .git 的文件夹
6.使用git remote add origin https://gitee.com/你的码云用户名/XXXX //添加远程仓库
7.使用 git pull origin master 命令,将码云上的仓库pull到本地文件夹
8.将要上传的文件,添加到刚刚创建的文件夹
9.使用git add . (. 表示所有的)或者 git add + 文件名 // 将文件保存到缓存区
10.使用git commit -m '新添加的文件内容描述' //添加文件描述
11.使用git push origin master ,将本地仓库推送到远程仓库
12.登录你的码云仓库查看提交信息