2

Our git repository has until recently only been used on linux and it contains some files that have a colon : within their filename. The filenames can not be changed due to internal requirements. Is it still possible to checkout this repository on a windows machine without getting an unable to checkout working tree Error?

If possible, these files could be totally ignored by the User on the Windows Machine, they don't need to be modified but they just can't be deleted.

Lokomotywa
  • 2,624
  • 8
  • 44
  • 73
  • 1
    Does this answer your question? [Git pull invalid Windows file names](https://stackoverflow.com/questions/33702140/git-pull-invalid-windows-file-names). To be precise, take a look at https://stackoverflow.com/a/33705131/12232870 – terrorrussia-keeps-killing Mar 30 '22 at 13:26
  • No, I simply can not perform an git pull and checkout on the repo since it says "unable to checkout working tree" – Lokomotywa Mar 30 '22 at 13:28
  • 1
    git-pull and git-checkout are totally different operations. Doesn't git [sparse checkout](https://git-scm.com/docs/git-sparse-checkout) work for you? The linked question also refers the same issue and uses git-sparse-checkout as a way to ignore files on checkout by filename/path patterns. – terrorrussia-keeps-killing Mar 30 '22 at 13:30

0 Answers0