-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
本篇博客源地址:http://qtbk.xyz/?p=107