一 :安装git;
1.百度搜索 git ,
2.打开git官网,
3.下载 git , 一路回车安装
二:注册gitee 并且新建仓库
1.百度打开 码云;
2.注册 ---- 进入 码云(中国官方版 git);
3.新建远程仓库 : 右上角 + , 新建仓库;
4.复制地址;
三:克隆 远程仓库到本地
1.桌面新建文件夹,文件夹内 右键 git bash here;
2.git clone '远程仓库地址';
例如: git clone https://gitee.com/courseP7/asdv.git
3.cd 进入远程仓库文件;
四:本地存储到远程
1. git add . 将本地的暂存
2. git commit -m "描述信息"
注:如需要进行全局配置:
git config --global user.email "你的邮箱"
git config --global user.name "你的名字"
3.git push 进行添加;
五:存储数据到他人仓库
1.git clone 获取仓库;
2.cd 进入远程仓库文件;
3.git add . 将本地的暂存
4.git commit -m "描述信息"
5.git push origin master 存储数据存到仓库