git error: Your local changes to the following files would be overwritten by merge:xxxxxx ,Please commit your changes or stash them before you merge.的phpstorm解決辦法


 

git報錯

error: Your local changes to the following files would be overwritten by merge:
.idea/encodings.xml
Please commit your changes or stash them before you merge.
Aborting   

解決辦法

phpstorm的操作

 1.在整個項目上右鍵-【git】-【Repository】-【Stash Changes】 然后按照默認設置直接點擊 【Create Stash】

2.在直接進行pull操作

在整個項目上右鍵-【git】-【Repository】-【Pull】

 

 

 

 

參考資料

Git 工具 - 儲藏(Stashing)

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM