Git - fatal: unable to create '/path/my_project/.git/index.lock': no ββsuch file or directory reading tree. xxxx command returned error: 128
I am converting my SVN repo to git (bitbucket) following this tutorial: https://www.atlassian.com/git/tutorials/migrating-convert/
But I keep getting this message when I run the command: git svn clone --stdlayout --authors-file = authors.txt --prefix = origin /
+3
source to share
1 answer
The answer is explained in the comment.
Similar problems arise in the Windows system due to its such as:
- Some of the Windows APIs are limited
260 symbols
to file pathname. Thus, git cannot create files with names longer than 260 characters.NTFS
The filesystem actually supports longer names(32k)
. - Windows directory allows you to use a space between
my folder
. - Windows file and folder names beginning or ending with
ASCII Space (0x20)
are saved without these characters.
Some of the following ways:
- Move the directory
git
closer to disk to keep the file name in 260 characters. - Create a directory
whitespace
manually using tools such asFAR
,GnuWin
who can create a catalog
Link:
+1
source to share