2016-03-01 55 views
1

我不能拉離混帳它顯示我的錯誤數據: -無法與git拉Ubuntu的[無法創建符號鏈接的文件名過長]

error: unable to create symlink node_modules/.bin/sshpk-conv (File name too long) 

我試圖在編輯的.git/config文件和添加

longpaths = true 

仍然是同樣的問題。

請幫我出去

+0

你在使用什麼文件系統?您可以通過運行'mount |來獲得當前工作目錄的文件系統grep「^ $(df -Pk。| head -n 2 | tail -n 1 | cut -f 1 -d'')」| cut -f 5 -d'''。例如,NTFS對文件名長度有硬限制。 – phortx

+0

我試圖顯示沒有結果 – Daishy

+0

你能提供與你的mounttable僅通過調用一個依據上述命令'mount'? – phortx

回答

0

我有上游和叉回購。問題與開發分支。

這是我的情況下發生了什麼。 顯示一個文件的Git已被刪除。但實際上我沒有刪除任何文件。所以我想重置它並採取拉。但它拋出下面的錯誤

無法創建符號鏈接的src /配置/ features.json(文件名過長)

我嘗試下面的事情,但我得到了同樣的錯誤

git rebase -i 
git pull 
git reset --hard HEAD 

解決方案:

I have committed with the deleted file to my fork on develop branch. 
Then I switched the some other branch let's say release and deleted the issue branch i.e develop. 
Then I have deleted develop from my fork as well. 
Now I did checkout to develop branch from upstream repo. and pushed to my fork.

一切都很好,沒有W上。