lz的笔记本是联想G40-80,win10系统
1、登陆git,敲入git.init 出现:bash:git:command not found
解决办法:关闭git,重新打开
2、敲入git push origin master 出现:fatal:HttpRequestException encountered
解决办法:进入 https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.14.0 ,下载 GCMW-1.14.0.exe,安装即可
3、在同一个文件夹中上传不同项目会add到同一个github仓库中
解决办法1:不要使用git多次在同一个文件夹中上传不同项目到github中
解决办法2:.git文件夹是隐藏文件夹,需要将其删除再上传。显示电脑的隐藏文件(具体操作:https://jingyan.baidu.com/article/5552ef47a4424c518ffbc9fc.html),在上传项目之前,将.git文件夹删除,然后再打开git_bash,重新实例化git本地仓库(即:git init)
4、敲入git push origin master 出现:everything up-to-data
解决办法:上传代码/项目时,必须要 git add . + git commit -m "提交信息", 一个不能少