一.在本地新建Unity项目,并用Git本地仓库管理起来。
https://blog.csdn.net/suian0424/article/details/70210142
二.上传本地仓库至GitHub(Windows版本)
上传出错的话可以参考:(转)Updates were rejected because the tip of your current branch is behind - 孤光一点莹 - 博客园
三.上传本地仓库至GitHub(Mac版本)
Mac环境下git生成SSH公钥 https://www.jianshu.com/p/56e8f01973aa
四.码云用户密码错误:remote: Incorrect username or password ( access token )
4.1码云用户密码错误:remote: Incorrect username or password ( access token )_打豆豆。的博客-CSDN博客 ,--本地一般不设密码。私有库用ssh。
4.2Git 修改用户名以及提交邮箱 Git 修改用户名以及提交邮箱 - CuriousZero - 博客园
4.3Gitee下生成/添加SSH公钥生成/添加SSH公钥 - Gitee.com
4.4提交本地test分支作为远程的test分支git提交本地分支到远程分支 - springbarley - 博客园
五.Github用户密码输入2次后提示出错:Logon failed, use ctrl+c to cancel basic credential prompt
在登录git时,报错Logon failed, use ctrl+c to cancel basic credential prompt.错误 在登录git时,报错Logon failed, use ctrl+c to cancel basic credential prompt.错误_henry_rhy的博客-CSDN博客_git 登录报错
六.error: RPC failed; curl 18 transfer closed with outstanding read data remaining的解决
原因是没有添加SSH密钥(测试 SSH 连接 - GitHub Docs)。
解决方法:先生成密钥生成新的 SSH 密钥并将其添加到 ssh-agent - GitHub Docs
,然后再添加到Github上Adding a new SSH key to your GitHub account - GitHub Docs