2017-10-17 112 views
0

我在犯了幾個大文件夾(角和Django的)第一次嘗試後,git的迴應:如何結束在另一個倉庫中運行的另一個git進程?

Another git process seems to be running in this repository, e.g. 
an editor opened by 'git commit'. Please make sure all processes 
are terminated then try again. If it still fails, a git process 
may have crashed in this repository earlier: 
remove the file manually to continue. 

曾任建議:

消除在git的文件夾中的index.lock。

我已經做到了這一點,但第二次,我重新提交「混帳添加」。作爲我的混帳推起源主程序的一部分,index.lock文件重新出現在git的

是否有另一種解決方案?發生了什麼事情可以保證?

我試着在評論鏈接的所有建議

我與這方面的工作:

git version 2.13.5 (Apple Git-94) 
+0

您是否嘗試過https://stackoverflow.com/q/9282632/6309中的所有解決方案?你在Windows上嗎?你的git版本是什麼? – VonC

回答

0

在我而言,index.lock不會刪除。相反,我發現我的Django的一個文件夾缺少的.gitignore,所以我創建了一個,其中包括以下文件:

include 
lib 
include 
bin 
.vscode 

您可能需要包括更多或更少,這取決於..顯然,我正在試圖推一個不贊同git的文件。

相關問題