. 给用户添加昵称
git config --global user.name "farlamp"
2.添加用户邮箱
git config --global user.email "623317276@qq.com"
3.根据邮箱生成ssh-key
ssh-keygen -t rsa -C "623317276@qq.com"
git 推送

一 、git怎样切换分支
1.查看所有的分支
git branch -a
master
* trunk
remotes/origin/HEAD -> origin/master remotes/origin/master
remotes/origin/zhanghanlun
2.切换分支
git checkout -b zhanghanlun origin/zhanghanlun
二、修改git用户名、邮箱
git config --global user.name "你自己的用户名"
git config --global user.email "你自己的email"
三、控制台操作
1. git 初始化
git init
2. 提交所有文件
git add .
3. 提交msg信息
git commit -m 'init project'
4. 提交到指定的远程仓库
git remote add origin https://gitee.com/farlmap/sands-apph5.gitti
5. 强制上传到仓库
git push -u origin master -f