Hello.

There was such a problem:

There is a virtual server with a project on which two people work. Some time ago, one of the developers made changes to the project on the server (not by a commit, but changed files via ftp) and commited. As he explained, he corrected some errors in the project.

And here there was a problem - this commit solved the problem on the server, but it is not reset to local machines (neither git pull, nor git fetch).

After this "commit", new commits were uploaded to the server, and there were no problems. But on the local repositories of this commit is not, and accordingly, the problems for which it was created are not solved.

In connection with which I have questions:
Why git from local repositories does not see the commit created on the server manually?
What can be done to make it available?

I would be very grateful for your patience and answers to these questions.

    1 answer 1

    See the repository on the server, most likely git push was not done, but just in case and see the branches too.

    P.S. Do not forget to hurt your hands, the one who makes edits on the combat server. Next time it may cost you money.

    • About git push not really understand? After all, a commit on the server, where to push it? A commit is definitely there and it is in the main branch, but it does not want to fall to local repositories. And the fact that he (commit) is confirms the absence of errors in the project, which are in local versions. I sin on the rights of access to the repository for different users, but have not yet found a solution. PS And about a hand to tear it off - you are absolutely right. - GhostSt
    • one
      I suppose you are working according to the principle: developers — remote repository — the git server at each of these sites creates a local repository. those. server has its own repository. From which you need to make git push to a remote repository. - VasyOk