设置自己的名字和邮箱
$ git config --global user.name “Your Name”
$ git config --global user.email “email@example.com”
初始化仓库
$ git init
添加所有文件到本地仓库
$ git add .
提交文件
git commit -m “first commit”
添加到远程仓库
git remote add origin 远程地址
推送到主分支
git push -u origin master
变基(相当于fetch+push)
git pull --rebase origin master
https://gitee.com/midoucode/layui_demo_4.git项目地址
密钥
bf9157e8-5741-4dd2-b6b8-66b3522884be