Good afternoon friends, the problem with using git, I'm new to this business and I don't know much (mostly standard), commit, push and everything is fine, but recently I tried to work from another computer with the same project and repository (downloaded archive with git, I added changes and everything worked fine) but after returning back to the old computer, it refuses to push changes to the old version of the git project. There should be enough of such questions in the network and I ask you to refrain from negative about my thousandth question, I would know what to look for would not apply here.

  • first git pull then git commit then git push ... - pavel
  • Good day! Please write what error git returns. - kover-samolet

1 answer 1

Well, before committing git commit and pushing git push changes, you probably have to push git pull to yourself from the repository on your old computer, because at the moment the content in the remote and local (on the old computer) repository is different.

This option, by the way, will do if there was a situation that at some point the old computer just stopped making and pushing changes, and all the work was done from another computer.

  • I thank you for the explanations of what was happening, now I’ll remember for sure, thank you once again! - Constantine Shibaev
  • @ConstantineShibaev, I will advise the textbook for familiarization. - I. Smirnov