Answer the question
In order to leave comments, you need to log in
Transferred the project from git incorrectly, how to fix it?
Some time ago I made a backup of the project on a USB flash drive (stupidly copied the project with files and the .git folder) - everything went from here.
now deploying the backup, on another computer I realized that I don’t see the files,
but the git status command shows them in large lists, both new and deleted
>> git status
On branch dev
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .env.example
new file: .gitattributes
new file: .gitignore
new file: app/.DS_Store
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .env.example
modified: .gitattributes
modified: .gitignore
modified: app/.DS_Stor
>> git commit -am "test"
error: invalid object 100755 5c23e2e24fc5d9e8224d7357dbb583c83884582b for 'artisan'
error: invalid object 100755 5c23e2e24fc5d9e8224d7357dbb583c83884582b for 'artisan'
error: Error building trees
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question