Answer the question
In order to leave comments, you need to log in
What was the error in adding changes to the github repository?
I solved the problem with adding changes to the project. But there is still one question that I do not understand. I started the project on github on one computer, but I had to change and add it on another. I copied this project from my computer to a USB flash drive along with the git folder created in it and went to change it for another computer. Having made the changes, I returned to the first computer and tried to push the project to the existing repository from the flash drive, but nothing worked out for me. Why is that? The same project, the same computer on which git is globally installed, did not delete the repository folder.
PS I solved this issue by copying the changes to the project folder on my computer.
Answer the question
In order to leave comments, you need to log in
Instead of copying folders, you should have downloaded the project to a second computer using the git clone command.
Judging by the text of the error, the local and remote branches are different, so before starting work on a different machine, you should have done a git pull.
This and much more can be found by simply copying the text of the error to google.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question