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,709
  • 6
  • 64
  • 90

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,134
  • 2
  • 17
  • 25