第一次提交代码到GitHub要配置什么 1. 在GitHub上先new一个仓库2.点击我的头像找到settings3. 选择密钥ssh4. title里随便起个名字哪个程序员开发keyType选择默认5.key的值要通过本地Git Bash 里生成命令是ssh-keygen -t ed25519 -C 你的GitHub邮箱一路回车就行生成后用cat ~/.ssh/id_ed25519.pub查看公钥内容。把这个粘贴到key里面就可以了6. 在Git Bush里输入 ssh -T gitgithub.com, 然后会提示你Are you sure you want to continue connecting, 写 yes。有success字样就可以了7. 先删除原来的远程地址 git remote remove origin8. 添加新的 SSH 远程地址 git remote add origin gitgithub.com:lujing1124/practise_test.git9. git push -u origin master