error: invalid path 'filePath:Zone.Identifier'

Viewed 3776

If I try to check out the development branch, I am getting this error:

$ git checkout development
error: invalid path 'src/assets/svg-icon/exit.svg:Zone.Identifier'

Can anyone tell me why I am getting this? I am using windows-10.

1 Answers

I faced same issue while cloning the project. Resolved this issue by understanding why this happened with help of this page https://github.com/git-for-windows/git/issues/2777

then run this command to set the flag

git config core.protectNTFS false

Above command require Admin permission to update flag

To run this command as administrator open terminal(cmd prompt) as admin and run below mentioned command

git config --system core.protectNTFS false

For more detailed information you can go through this page

github/git Checkout Returns 'error: invalid path' on Windows

Related