over 9 years ago
Intialize git repostiory
First Commit
Two tree architecture and Three tree architecture
Best basic practices for writing commit messages
Viewing the commit logs
Git Basic WorkFlow
In the last Blog Git Basic WorkFlow we have moved changes from our working directory, to our staging index, and to the repository. And I have gave those changes simple labels A and B.
Actually Git usses different concept to track these changes or say snapshots of changes.
In a typical Git workflow, A would represent changes to 2 files or 3 filse and B would represent one new files that were added to the repository.
So How Git Track
When we submit changes to the repository, at that point Git generates a checksum for each changed set. A checksum is a number that is generated by taking data and feeding it into an algorithm, checksum algorithm converts data into a simple number
Git generates this checksum is by using the SHA-1 hash algorithm.
The number that the algorithm generates is always going to be a 40 character hexadecimal string (0 -9 and a - f)
where we can see this number
The commit ID is the SHA-1 number that will be unique to the changes that are in this commit. Git attaches the a bit meta information to each one of those snapshots, SO that git can trace the information.
Thanks
0 Comment(s)