There are two PCs (pk1 and pk2) in different networks that push project updates to the githabb.
Problem: on the 20th, p1 launched 4 new directories into the project with files. On the 21st of the day, pc only installed git, so it completely cloned the repository with the github. Removed 2 of the 4 directories, renamed the remaining 2, and added 2 more new catalogs, then pushed the change. 22 number PK1 need to get the changes that made PK2. PK1 is slightly smaller than a newbie to git, so he reads on the Internet that in order to update his local repository (according to the remote one) he needs to use git pull origin, which is essentially a merge. As a result, pk1 receives on its local pc +4 new catalogs, of which 2 are the renamed old directories, which are already in the local repository under the old name, and 2 new catalogs from pc2. The directories deleted by pk2 still remain in the local p1 repository.
Question: how to update your local repository in full compliance with the remote one? or, if you prefer, turn git into a google drive for code ?.
The only thing that comes to my mind is constant cloning, but I'm more than sure that this is not competent.