在學習Git的時候發現了一個很好網站:*https://www.git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%91%BD%E4%BB%A4%E8%A1%8C在此網站中可以快速學習,比我之前學習的效率要高
學習Git遇到的問題
命令行無法退出,提示:bash: unexpected EOF while looking for matching `"’
bash: syntax error: unexpected end of file,是由於輸入信息時,中英文符號問題
解決方法:另起一行,按 Ctrl+D
在執行commit時,由於命令寫錯,沒有寫提交日誌,再次更正提交就出現上述錯誤: fatal: Unable to create ‘E:/Game/GitStudy/.git/index.lock’: File exists.
解決方法 :rm -f .git/index.lock