Git and Github Tutorial - Git Concepts and Architecture - Part 4

Hi, Today in iThePro we will learn how to use Git and how to use with Github to build software and develop it. In this part we will see the git concepts and architecture.

The three tree architecture:

In git Arch we have 3 things : Project, Staging Index and finally the Repository.
The Project is where we put things and start working on it .
The Staging index is in between The Project and The Repository, basically the staging index is the place when we can put many files, so later on we can commit them as one set of changing.
The Repository is where git save things, so we can go previously.

The Hash Values (SHA-1):
As we see before the commit ID is unique, because it's based on Hash value, and each one represent the changes that we made when we commit things. You can say is like a snapchat of change  that we made.
So this commit ID is a checksum based on 40 Char of Hex.

The HEAD Pointer:
HEAD: is a variable to reference, point to a specific commit in the Repository witch is the last commit committed to the repository.
-> Pointer to "*Tip" of the current branch in the Repository (We will talk about it later) in the "<myproject>/.git/HEAD" file, and this file this file reference to "<myproject/.git/refs/heads/master" file and this inside this file the last commit ID of our Repository.

See the Git and Github Tutorials.



Oussama Amri 21 years, security professional from Tunisia. Lover of computer science especially programming and secuirty. Follow me On :

Popular Posts Powered by Blogger.