0

Full message of the error is this:

git failed with a fatal error. unable to checkout working tree clone succeeded, but checkout failed. you can inspect what was checked out with 'git status' and retry with 'git restore --source=head :/'

Here is the clues related.

  1. I ran it in Visual Studio by copying the git HTTPS address into Visual Studio, not through the command prompt(I also checked on Intellij, but same error)

  2. I confirmed that it works with other clones

  3. The file is fine because I was able to run it in Remote SSH. (But I need to run in local Visual Studio)

  4. I don't think it has to do with the size of the file name.

  5. I tried with git LFS, but I am not sure how this works.

Is there any other possible reason that can cause this issue?

Thank you!

James Kang
  • 61
  • 5
  • [Forbidden characters in filename](https://stackoverflow.com/a/26780319/7976758)? [Path is too long](https://stackoverflow.com/a/22575737/7976758)? https://stackoverflow.com/search?q=%5Bgit%5D+unable+to+checkout+working+tree+clone+succeeded%2C+but+checkout+failed – phd Jun 08 '20 at 01:08

0 Answers0