0

We have a repo. A coworker check in a folder in linux. I want to check it out in Windows. There are some filenames(e.g. ABC::DEF.3pm.gz) what Windows doesn't. It fail when I run

git pull origin

Is there a way to ignore this folder?

I've tried put this folder in .gitignore and it doesn't work as this folder's already in repo.

Vertexwahn
  • 7,129
  • 6
  • 55
  • 83

1 Answers1

0

There are two possible solutions.

Sparse checkout

Sparse checkout is a Git feature which allows to checkout only specific files and directories. See examples and further discussion here.

Filter-branch

Another solution would be renaming that file across whole repository with git filter-branch as described in this answer. That would help to get rid of issue at all, however it would also rewrite commit history.

Community
  • 1
  • 1
Mykhailo
  • 1,044
  • 2
  • 16
  • 24