電腦突然藍屏重啟后,Git報錯如下
:“git status”失敗,錯誤代碼128: fatal:bad config line 1 in the file xxxxxx/.gitconfig
查閱網(wǎng)上資料,應該是藍屏時Git配置文件內容損壞或丟失
解決方法
- 將報錯目錄下的.gitconfig文件刪除
- 在項目中Git Bash Here中配置Git的用戶名及郵箱
配置代碼:文章來源:http://www.zghlxwxcb.cn/news/detail-780857.html
//配置用戶名
git config --global user.name "用戶名"
//配置郵箱
git config --global user.email "郵箱"
重新配置后可解決該問題文章來源地址http://www.zghlxwxcb.cn/news/detail-780857.html
到了這里,關于電腦藍屏重啟后Git突然報錯:“git status”失敗,錯誤代碼128: fatal:bad config line 1 in the file xxxxxx.gitconfig的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!