1. 程式人生 > >Git出現Unable to create 'E:/xxx/.git/index.lock': File exists.的解決辦法

Git出現Unable to create 'E:/xxx/.git/index.lock': File exists.的解決辦法

初次使用git,在執行完"git add readme.txt"命令後,在執行commit時,由於命令寫錯,沒有寫提交日誌,再次更正提交就出現上述錯誤:Unable to create 'E:/xxx/.git/index.lock': File exists

解決方案:在.git同級目錄,執行rm -f .git/index.lock    將檔案刪除即可提交成功

相關推薦

Git出現Unable to create 'E:/xxx/.git/index.lock': File exists.的解決辦法

初次使用git,在執行完"git add readme.txt"命令後,在執行commit時,由於命令寫錯,沒有寫提交日誌,再次更正提交就出現上述錯誤:Unable to create 'E:/xxx/.git/index.lock': File exists 解決方案:

Eclipse中出現Failed to create the part's controls問題的解決辦法

Eclipse中出現Failed to create the part’s controls問題的解決辦法 問題詳情: 解決辦法: 選中該專案-------->屬性-------->庫-------->展開出現問題的JAR-------->原始碼連線--

使用git add命令時遇到 fatal: Unable to create index.lock File exists 錯誤的解決辦法

$ git add . fatal: Unable to create 'D:/Git/ocr/.git/index.lock': File exists. Another git process seems to be running in this repository, e.g. an ed

解決在ubuntu下安裝git出現Unable to lock the administration directory (/var/lib/dpkg/)的問題

在ubuntu16.04下安裝git,出現以下問題: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily

Tomcat配置多數據源出現Unable to create initial connections

list source nali fin lee runnable bst r.java PE 遷自惡心人的網易博客 2017-06-27完整標題:Tomcat配置多個JNDI數據源(Postgresql)出現Unable to create initial connect

用IAR開啟STM8時,出現Unable to create configuration 'Debug' using tool chain ‘STM8’

用IAR開啟STM8時,出現“Unable to create configuration 'Debug' using tool chain ‘STM8’,   出現這個問題的原因是按裝的IAR不正確,要裝ST for STM8版本的,而不能用ST for ARM版本的

EntityframeworkCore建立資料庫遷移時出現 Unable to create an object of type 'ApplicationDbContext'.

錯誤詳情: 這個錯誤曾經困擾了我整整一個下午,百度了好久好久.....也使用Google搜尋了一下,找到了一點相關的內容,但是還是沒有解決問題。最終通過bing搜尋到了這個問題的解決方案(果然親兒子。。。其實沒有什麼聯絡啦...)問題描述如下: Add-Migrat

JSP 頁面出現 Unable to compile class xxx 時的問題解決思路

最近在學習基本的 JSP 開發上傳功能時,出現了 JSP 頁面提示 Unable to compile class xxx 的錯誤。在排查問題時,發現在 IDE 中的當前 JSP 頁面程式碼中引入了 commons-fileupload 包中的幾個類,如 DiskFileIt

搭建基於hadoop 2.2.0的分散式叢集啟動時出現 "Unable to load native-hadoop library for your platform" 的解決方案

問題引出:         搭建基於hadoop 2.2.0的分散式叢集完成後,為了測試hadoop分散式叢集,啟動時執行命令: {HADOOP_HOME}/sbin/start-dfs.sh,經常會看到如下提示:WARN util.NativeCodeLoader: Un

Mac中真機測試React Native project時出現Unable to load script from assets 'index.android.bundle'

剛接觸學習React Native,在進行真機除錯時,報錯出現Unable to load script from assets ‘index.android.bundle’. Make sure your bundle is packaged correctl

Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication 解決辦法

and bootstra uil 多次 div cep cat java exce 相信很多人都遇到過這個問題,用Android Studio正在運行程序的時候,突然不知道什麽原因,報一個找不到application或者找不到activity的錯誤(java.lang.Cl

win10 windows10 react-native rn 環境安裝配置Unable to load script from assets 'index.android.bundle終極解決方案

首先說明一下我的情況,新手開始學rn,之前只看過阮一峰大神和一個翻譯國外react入門的文章,然後直接開始rn配置,也是一步一步看著網上的教程開始的,剛開始問題太多,沒有寫中間的bug,直到最後這一個bug搞了我半個下午半個上午,今天上午終於看到期望已久的hello wor

okhttp Unable to resolve host “”: No address associated with hostname的解決辦法

這個問題其實很簡單就是許可權的問題,在Androidmanifest中新增一下許可權即可: <uses-permission android:name="android.permission

IP欺騙報錯 Unable to load summary dialog -1 Please register richtx32.ocx 解決辦法

建立IP欺騙的時候loadrunner報錯 Unable to load summary dialog -1 Please register richtx32.ocx解決辦法:1.開始—執行,輸入“cmd”回車2. 輸入“Regsvr32 C:\Windows\System3

【Android】TensorFlow出現Connect to storage.googleapis.com:443 ......Connection timed out: connect解決辦法

TensorFlow執行的時候會報以下異常: Error:Execution failed for task ‘:downloadFile’. org.apache.http.conn.HttpHostConnectException: Connect

git提交代碼出現錯誤fatal: Unable to create '項目路徑/.git/index.lock': File exists.

log stack sts exists 下一個 flow code .cn create git提交代碼出現錯誤fatal: Unable to create ‘項目路徑/.git/index.lock‘: File exists. 具體出錯代碼如下: 具體原因不詳

Unable to create 'E:/.git/index.lock': File exists.

Unable to create 'E:/code/fund/at-fundsys/at-fundsys/.git/index.lock': File exists. Another git process seems to be running in this repository, e.g. a

【Error】fatal: Unable to create '.../.git/index.lock':

使用git add時遇到錯誤: fatal: Unable to create '/Volumes/APFS-case-sensitive/Tech/Pwn/[email protected]/.git/index.lock': File exists. Another gi

Git學習】解決git push操作的時候出錯,提示 error: unpack failed: unable to create temporary object directory

一、問題描述 剛剛在敲完某個模組的程式碼,提交程式碼到那麼本地分支,然後push到遠端分支的時候,出現了下面的錯誤,提示我Push rejected。然後沒有其他的提示了。 使用 git bash 終端,輸入git push 命令,也提示被拒絕,如下所示

git push error unable to create temporary sha1 filename

問題描述 今天push程式碼  發現git報錯如下 unable to create temporary sha1 filename! 網上找了下  發現幾乎沒有這個問題 有幾個相似的問題 有的說版本庫xxx.git許可權不對  登陸到伺服器上 排查過程 [xxx@x