Answer the question
In order to leave comments, you need to log in
Git error: failed to push some refs to deleted files! How to recover?
Hello! I wanted to upload my project to git, looked at the cheat sheet at this link https://toster.ru/q/492830, ran the following commands:
git init
git add --all
git commit -a -m 'my commit'
git remote add origin my link to the repository
then forgot to skip the git pull command and write git push origin master, after which the error error appeared: failed to push some refs to
after which I wrote the git pull --rebase origin master command
and my files were deleted from the project folder altogether , and they are not in the basket, not in the repository ...
Can I somehow roll back the changes and return the files?
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