git config --list --show-origin
git config --global user.name "John Doe" # Git上配置GitHub用户名称
git config --global user.email "johndoe.example.com" # Git上配置GItHub注册邮箱
Git本地创建key钥
ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ed25519
把生成的id_rsa.pub的信息添加到Github的SSH and GPG Keys中
GitHub添加key
echo "# IpadPro11" >> README.md
git init # 会在本地项目中,生成一个.git的文件
git add README.md # 添加文件到仓库
git commit -m "first commit" # 提交的文件注释说明,最好说明一下,否则有时会出错
git branch -M mei
git remote add origin https://github.com/meichenblog/IpadPro11.git # 将本地仓库关联到github的仓库里去
git push -u origin mei # 将代码提交到Github上
https://github.com/oldj/SwitchHosts