GitHub 初次配置
1 ) GitHub注册 https://github.com
2)GitHub 新建仓库
2.1 输入仓库名称
3 ) 设定 本地显示用户名称 :
git config --global user.name "CodeMason"
git config --global user.email "[email protected]"
3.1 申请 SSH key
ssh-****** -t rsa -b 4096 -C "[email protected]"
Enter file in which to save the key (/Users/mhrusrm3/.ssh/id_rsa): --》 Enter(回车)
3.2。
eval "(ssh-agent -s)"
ssh-add -k ~/.ssh/id_rsa
pbcopy < ~/.ssh/id_rsa.pub
4: gitHub设定Key
5: 测试 SSH
ssh -T [email protected]
Hi wn323225! You've successfully authenticated, but GitHub does not provide shell access. -》 OK
6: 初始化本地仓库
修改后 使用Commit 命令提交,,使用 Push 同步到网络