[
[
git

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

2 answer(s)
A
Alexey Sundukov, 2019-12-04
@KrasPvP

Do before git push as it should be before git pull.

[
[email protected]&a qkcUv*6=KygEm, 2019-12-18
@KrasPvP

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 question

Ask a Question

731 491 924 answers to any question