@cannot lock ref 'HEAD': unable to resolve reference 'refs/heads/master': reference broken解決方法
@cannot lock ref ‘HEAD’: unable to resolve reference ‘refs/heads/master’: reference broken解決
修改了一小點東西打算commit,成功以後然後打算push,這時候悲劇發生了,我的垃圾電腦自動重啟了,當我再次開啟的時候,idea中所有檔案都變成了綠色(加入版本管理,沒有commit提交),當我再次提交時,就出現了那個錯誤cannot lock ref ‘HEAD’: unable to resolve reference ‘refs/heads/master’: reference broken
問題原因:應該是我push的時候自動重啟瞭然後導致 .git中的檔案損壞
解決方法:遠端重新check out這個工程到新的資料夾,把新專案的 .git資料夾完整複製到 出錯的資料夾中,此時綠色部分小時,只剩下藍色修改過的部分,commit,push ,成功,問題解決
若是知道其他原因或者解決方法的朋友請麻煩告知~ 不吝賜教~
相關推薦
@cannot lock ref 39;HEAD39;: unable to resolve reference 39;refs/heads/master39;: reference broken解決方法
@cannot lock ref ‘HEAD’: unable to resolve reference ‘refs/heads/master’: reference broken解決 修改了一小點東西打算commit,成功以後然後打算push,這時候悲劇發生了,我的垃圾電腦自動重啟了,
Tk1上ROS與Arduino通訊,執行“Hello World”時,出現的錯誤(Unable to sync with device; possible link problem or )及解決方法
安裝好環境後,執行“Hello World”樣例,即執行 rosrun rosserial_python serial_node.py /dev/ttyACM0 語句後,出現如下錯誤: [IN
Failed to resolve:com.android.support:appcompat-v7:27.+ 問題的解決方法
新建一個專案,出現 Failed to resolve:com.android.support:appcompat-v7:27.+ 問題: 1 分析 android studio 中的編譯器版本與 build.gradle(app 下)不對應造成的。 開啟 build.
Error:Failed to resolve: com.android.support:recyclerview-v7:28.0.0解決方法
在使用Android Studio的過程中需要新增依賴recyclerview,出現報錯: Unable to resolve dependency for ':[e
Failed to resolve: com.android.support:appcompat-v7:27.+ 報錯解決方法
app module build.gradle dependencies中預設配置如下: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile(
Unable to instantiate Action, xxxAction, defined for 'xxx' in namespace '/'xxxAction解決方式
scope 類名 jsp amp esp def res 出現 eth 出現這個問題的解決辦法主要有兩個 1、假設項目沒有使用Spring,則struts.xml配置文件裏,這個action的class屬性的路徑沒有寫完整,應該是包名.類名 2、假設項目使用了S
React Native: Unable to resolve module 39;accessibilityinfo39;
eset clear install ble ive node tmp 6.0 acc 官方解決方案: 1. Clear watchman watches: `watchman watch-del-all`. 2. Delete the `node_modules` fol
python3下:Was unable to import superset Error: No module named 39;MySQLdb39;
描述:python3.4環境下:superset的資料來源配置成mysql後,執行資料庫配置時:fabmanager create-admin --appsuperset 報如下錯誤: Was unable to import superset Error: No module named
Unable to resolve dependency for 39;:
Unable to resolve dependency for 39;:[email prot
今天匯入Android專案的時候突然遇到了一個問題,‘Unable to resolve dependency’
有點頭疼,然後就在網上找了很多方法,發現都不行,最後發現,原來是
這個檔案的配置出了錯,我新匯入的gradle-4.6-all.zip,我的專案的是gradle-4.4
android Studio 出現:Unable to resolve dependency for 39;:
InvalidOperationException: Unable to resolve service for type 39;Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityU
在新建asp.net core 應用後, 添加了自定義的ApplicationDbContext 和ApplicationUser ,並添加了Identity認證後, 會出現 InvalidOperationException: Unable to resolve service for type 'Micr
Android studio 下載依賴時出現Unable to resolve dependency for 39;:
升級 android studio 報錯Unable to resolve dependency for 39;:
AndroidStudio升級報錯Unable to resolve dependency for 39;:
近日升級AS到3.2.1版本,新建工程時報錯:
Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.android.support:
AndroidStudio升級報錯Unable to resolve dependency for 39;:
近日升級AS到3.2.1版本,新建工程時報錯: Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.android.support:
Ubuntu sudo 出現unable to resolve host 解決方法
主機 oca ubuntu true highlight log ble nbsp light Ubuntu環境, 假設這臺機器名字叫abc(機器的hostname), 每次執行sudo 就出現這個警告訊息:sudo: unable to resolve host abc雖
[CDS][DNS]Unable to resolve host "www.baidu.com": No address associated with hostname
perm wifi style cat man 正常 2-2 get sdn 寫了一個輸入流,用來獲取baidu的數據,結果卡在獲取InputStream,Logcat提示以下錯誤: [CDS][DNS]Unable to resolve host "www.baidu.c
錯誤 Unable to find vcvarsall.bat 的終極無敵最完美的解決辦法
.bat vc++ 計算 解釋 計算器 bat window win7 mnt Windows 上通過 pip 安裝 python 包,經常會出現這種錯誤。 如:pip install pyodbc。 這種錯誤的簡單明了解釋就是:python 編譯器找不到計算機上面的
一組相關聯的問題:“sudo: unable to resolve host ###: Connection timed out”、軟件啟動速度超慢、IPv6無法使用
acs sts 原因 命令 最終 hostname med 出現 connect 近日陸續發現計算機出現幾個問題,最終發現這些問題實際上是由同一個原因導致的 問題1:無法使用IPv6 問題2:無論是啟動Emacs GUI還是在命令行中執行emacs -nw指令,打開Emac
Unable to resolve module crypto
with n-n pin sta pack nod pda ping eps Add rn-nodeify to your devDependencies in package.json: "devDependencies": { "rn-nodeify": "^6.