Since I am a regular user, I only use Github at the git clone * level. Found, for example, a small utility, read the description; I like it - I download the source code, if necessary, I compile it, use it. It's all clear.
But I faced such a problem. When you download the utility and go to its directory, there is nothing there except the README (at first glance). If we enter the ls -all will find the hidden .git folder and the .gitignore file. In the folder. .git will be the following directories and files:
branches config description HEAD hooks index info logs objects packed-refs refs
I do not understand what to do with all this and what it generally is. Explain, please, how to use it? How to build a program from this all to make it work?
.gitdirectory, the git’s “brains” are all manipulations and their history with this VCS stored there. The .gitignore file allows you to set rules according to which individual project folders / files will be ignored. These "artifacts" are service. If you are not going to continue the development of this project, you can safely remove them. - romeo