1. 给用户添加昵称
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 推送
![](https://img.haomeiwen.com/i7979712/ef412e634b437c6f.png)
一 、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
网友评论