i have cloned the project in my windows machine(windows 10) and try to switch to different branch. but getting invalid path issue[1]
#git switch develop
[1]
error: invalid path 'src/main/resources/examples/invoice-item-create-request-eip.json '
error: invalid path 'src/main/resources/examples/invoice-item-create-request-orcl.json '
Why is that? I didn't get any issue /warning when i clone the project
I didn't get any issue /warning when i clone the project
Probably because the default checked out master branch did not include files with a trailing space in it.
See if you can rename those files directly on GitHub in the develop branch (through their web GUI interface), and then clone the repository again (and switch to develop)
If you cannot rename them, exclude them through a sparse checkout (new command, still experimental with Git 2.25: I present it here).
As noted by wdtj in the comments:
if you are using
sparse-checkouton Windows, you may need to addgit config core.protectNTFS falsepergit-for-windows/gitissue 2777
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With