Struttura Repository Git

Da WikiSitech.
Vai alla navigazioneVai alla ricerca

In any case (unless you create a "bare" Repository), the new Repository is essentially a folder on the local hard disk which contains the working directory and the metadata folder.

The metadata folder is a dedicated child folder named .git and often referred to as ".git-folder". It contains the actual repository (i.e. the Commits, the References, the logs and such).

The metadata folder is totally transparent to the Git client, while the working directory is used to expose the currently checked out Repository content as files for tools and editors.


Un progetto GIT è strutturato in tre parti:

  • Working dir o directory di lavoro che contiene i file appartenenti alla versione corrente del progetto sulla quale l’utente sta lavorando.
  • Index o Stage che contiene i file in transito, cioè quelli candidati ad essere committati.
  • Head che contiene gli ultimi file committati.

GitWorkflow.png