git报错

时间:2023-03-10 04:31:22
git报错

-Initial commit Untracked files nothing added to commit but untracked
代码并没有被成功提交,看信息是文件没有被tracked
git commit -a -m "提交信息"与 git add + git commit -m "提交信息",不完全一样
git commit -a -m "提交信息"只将被tracked的文件添加到暂存区并提交,而将文件添加到git管理是要git add命令的,
而直接使用`git commit -a -m "提交信息"命令idea帮做了这一步,自动将文件tracked了。
新建了文件之后,idea会提示:
我肯定某次选择了记住,之后idea默认都会帮我把新建的文件tracked化。
所以初次提交,还是要分别使用:
解决方法,重新提交一次

error: key does not contain a section: –global
两个--连接在一起,不是一个
若执行ssh-add /path/to/xxx.pem是出现这个错误:Could not open a connection to your authentication agent,则先执行如下命令即可:
ssh-agent bash
Repository not found。fatal: Could not read from remote repository.
参考:https://youcanping.cn/2017/12/20/ssh-Permission-denied/

bash: echo: command not found
windows版本的git不自带make,gcc之类的工具。需要另外下载安装MinGW