V
V
Vyacheslav Belyaev2018-08-14 09:10:51
git
Vyacheslav Belyaev, 2018-08-14 09:10:51

Why is GIT not uploading files to a remote server?

Until recently, git worked fine. But yesterday we noticed that it merges the versions and unloads (writes it into history), but changes appear on the remote server.
The general unloading history is visible and the changes of colleagues are normally pulled out.
I use NetBeans + git I am
unfortunately new to git

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DancingOnWater, 2018-08-15
@DancingOnWater

Let's start explaining from the oven:
1) Absolutely all git repositories are equivalent. The repository on the server is not fundamentally different from your repository.
2) All repository data is stored in the "Project Path"/.git folder.
What follows from this? - If you receive changes normally, then the structure of the repository is not broken and git works as it should.
The whole question is how your server is organized.
Usually there is a so-called bare repository on the server. Its difference from yours is that the git checkout command does not expand the commit to a local directory. And there is nothing there except for the .git folder. Access to such repositories is either via git, ssh or https.
No FTP is required in principle. Its presence and your attempt to see what kind of files tells me that the situation is as follows:

  • There is NOT a bare repository on the server, but a full one;
  • The project folder contains a copy of the installed commit (you can see what kind of commit it is by running the git status command on the server);
  • You work and push to another branch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question