Answer the question
In order to leave comments, you need to log in
How to do a git push if the project structure is different?
There is a local project, for example, with the following structure:
MainFolder
- main
-- file1
-- file2
Uploaded to github via git, everything is fine.
During the week of development, the entire structure of the project changed. Example:
MainFolder
- file_main1
- file_main2
When git push git gives a mismatch error, what should I do? I don’t want to lose activity on the github and delete the project and re-upload.
Answer the question
In order to leave comments, you need to log in
Also, I want to note one thing:
if you change the structure of files without changing the names of the files, but moving them through the folders, you can do
I started placing the files in folders, from one to another, etc., after this command everything works fine and painlessly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question