問題一:
在git沒有執行完成的時候強制關閉,下次提交的時候產生錯誤
fatal: unable to create 『/***/xx/.git/index.lock』: file exists.
if no other git process is currently running, this probably means a
git process crashed in this repository earlier. make sure no other git…
原因:在你進行某些比較費時的git操作時自動生成,操作結束後自動刪除,相當於乙個鎖定檔案,目的在於防止對乙個目錄同時進行多個操作。有時強制關閉進行中的git操作,這個檔案沒有被自動刪除,之後你就無法進行其他操作,必須手動刪除
方法:直接在git中輸入$ rm d:/.git/index.lock 即可解決
問題二:
分支的建立和合併順序問題不對就會產生各種而各樣的錯誤:
1.首先,在master要有內容。
2.書寫分支內容
3.建立分支,上傳改動
4.合併
git常見使用問題總結
1 git 如何將本地分支和遠端不同名分支關聯起來 未關聯前報錯 error src refspec release clear log dose not match any error failed to push some refs to 遠端git位址解決 git push origin a ...
git使用問題總結(全)
一 repo sync c時出現error exited sync due to fetch errors 再同步一次就好了 二 repo sync c時出現沒有找到相應的分支 先repo init u b br hisi wt trunk hione g open repo branch stab...
git使用以及問題總結
1 首先你要安裝git工具 1.git安裝 1.先檢視一下未設定前的config cat git config 2.git config user.name xianbai 配置使用者名稱 3.git config user.email xianbai example.com 配置郵箱 ssh ke...