查看用户及邮箱
git config user.name
git config user.email
更改用户及邮箱
git config --global user.name "your name"
git config --global user.email "your email"
第一次上传项目到gitee
1.git config user.name ## 查看用户名
2.git config user.email ## 查看用户邮箱
3.git init
4.git status
5.将你本地仓库与码云上的远程仓库关联起来
git remote add origin https://gitee.com/xxxx.git ---- 自己的仓库地址
在你准备上传你的项目之前,最好更新一下项目,确保没有和远程仓库的代码有冲突
6.git pull --rebase origin master
git add . 添加目录下所有发生改变的文件
git commit -m '注释信息'
本地仓库代码提交至远程仓库
git push -u origin master