I can't pull new changes from my repository on GitLab because I'm getting the error below:
Cloning into 'X'...
remote: Enumerating objects: 450, done.
remote: Counting objects: 100% (331/331), done.
remote: Compressing objects: 100% (215/215), done.
remote: Total 450 (delta 145), reused 280 (delta 108), pack-reused 119 eceiving objects: 100% (450/450), 20.83 MiB | 20.82 MiB/s
Receiving objects: 100% (450/450), 26.61 MiB | 20.89 MiB/s, done.
Resolving deltas: 100% (158/158), done.
error: invalid path '\'
fatal: unable to checkout working tree
According to this question, I have tried git config core.protectNTFS false
but nothing changed. Then I tried git config --system core.longpaths true
to get more information about the error and found something that I think is the problem but I don't know how to fix it and why that happened:
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: .gitignore
deleted: README.md
deleted: "\\" <<<<<<<<<<<<<<<<<< this