Reputation: 303
I am trying to understand how git client server model works. But one thing is not clear for me when we push the files from the client machine in many sources it's said that the files are pushed to server machine. But when I searched for the pushed file on server they are not found. According to doumentation server's bare repository only used for colloborating multiple git users as common point. But, my question is when new git user wants to pull the project for the first time from where does the server serves it?
Please help me in understanding this concept. Thanks in advance.
Upvotes: 2
Views: 462
Reputation: 1323753
I want to know where(in which path) the pushed file gets stored on server, like bare repository or somewhere else(some other path)?
A bare repo includes only the .git
usual content and no working tree (which usually shows the actual files of a given commits)
The objects subfolder will include your files (blob) compressed, but also your trees and commits
Depending on the transfer protocol those pack files are transfered back to your own .git
repo, and one commit is checkout in your repo working tree.
Upvotes: 2