
github
JanerayL
凡事预则立,不预则废
展开
-
github公钥设置
出现提示Your public key has been saved in C:\Users\Administrator/.ssh/id_rsa.pub.这句话中的地址即公钥具体位置。目录名为自己实际生成密钥地址。三个全都按“Enter”键。原创 2022-09-13 21:08:26 · 1547 阅读 · 0 评论 -
error: failed to push some refs to原因及解决
原因:执行 >git push -u origin main 之前没有commit解决:git commit -m "提交代码"再次:git push -u origin main 即成功原创 2022-01-19 20:00:00 · 2202 阅读 · 0 评论 -
从本地上传已有项目至github
一,初始化本地项目: git init成功标志:Initialized empty Git repository in C:/你的本地项目路径/Project/.git/二,代码传至本地库: git add .成功标志:warning: LF will be replaced by CRLF in .idea/inspectionProfiles/profiles_settings.xml.The file will have its original line endings in yo原创 2022-01-04 21:00:00 · 933 阅读 · 0 评论