簡體   English   中英

錯誤被殺:命令“git add”后9。

[英]Error Killed: 9 after command “git add .”

我做“git add”時遇到問題。 我收到錯誤消息“Killed:9”。 如果我再試一次“git add”。 我收到了另一個錯誤:

致命:無法創建'./crmeasy/.git/index.lock':文件存在。

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文件並再試一次,我會收到相同的錯誤周期。 我嘗試提交新的空Django項目virtualenv目錄。 我怎么能解決這個問題?

如果你要將你的virtualenv添加到git,就會發生這種情況。

解決方案:.gitignore文件中添加virtualenv的路徑。 現在你可以git add --all

建議進一步閱讀:

將我的virtualenv目錄放在我的git存儲庫中是不是很糟糕?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM