1

Using PhpStorm on a Windows machine and trying to do git pull or git clone from a remote repo and it returns the following:

error: invalid path 'Docs/AdminHelp/en/Inventory/Contract financials | Financial fields calculation (recalculate_fields).md'
fatal: unable to checkout working tree

Other team members are working with the same repo, but on my end I keep getting this error. Is there a way to fix this?

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Robert Sinclair
  • 4,550
  • 2
  • 44
  • 46

1 Answers1

2
Docs/AdminHelp/en/Inventory/Contract financials | Financial fields calculation (recalculate_fields).md
                                               ^^^

A pipe is not allowed in Windows file paths, so you would need to:

  • double-check your colleagues are using the repository on Linux/Mac
  • use a Linux-based VM (or WSL2 if your Windows is a Windows 10 recent enough)

In that Linux-based environment, you would be able to checkout the repository.

Or, you would request from your colleagues to git mv/rename that file with a more sensible name.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250