git - File name is too long: how to remove? -
git status shows following message:
lit/1252-a-comparison-between-neural-networks-and-other-statistical-techniques-for-modeling-the-relationship-between-tobacco-and-alcohol-and-cancer.pdf: file name long on branch master branch up-to-date 'origin/master'. nothing commit, working tree clean. this file deleted, can confirm following command:
git ls-files --deleted output:
lit/1252-a-comparison-between-neural-networks-and-other-statistical-techniques-for-modeling-the-relationship-between-tobacco-and-alcohol-and-cancer.pdf when try remove git ls-files --deleted | xargs git rm there no effect, cannot commit changes repository until remove file.
i have tried use: git config --system core.longpaths true without success.
i wonder how resolve issue?
git rm --cached command you're looking for.
this answer gives more details on git's add/remove commands
Comments
Post a Comment