简体   繁体   English

无法git pull ubuntu [无法创建符号链接文件名太长]

[英]Unable to git pull ubuntu [unable to create symlink Filename too long]

I am unable to pull data from git it is showing me the error :- 我无法从git中提取数据,它向我显示错误:-

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

I tried while editing .git/config file and added 我在编辑.git / config文件时尝试过并添加了

longpaths = true

still same issue. 还是一样的问题。

Please help me out 请帮帮我

I have upstream and fork repos. 我有上游和叉子仓库。 Issue is with develop branch. 问题在于开发分支。

This is what happened in my case. 这就是我的情况。 Git showing one file has been deleted . 显示一个文件的Git已被删除。 But actually I didn't delete any file. 但是实际上我没有删除任何文件。 So I wanted to reset it and take the pull. 所以我想重置它并拉一下。 But it is throwing below error 但是它抛出错误以下

unable to create symlink src/config/features.json (File name too long) 无法创建symlink src / config / features.json(文件名过长)

I tried below things but I got same error 我在下面尝试了但出现了相同的错误

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

Solution: 解:

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.

Everything is fine now. 现在一切都很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM