Generally, a commit object will have one parent commit. The parent commit objects are those commits that came first. The name is composed of a hash of relevant aspects of the commit this way, identical commits will always have the same name. A SHA1 name: a 40-character string that uniquely identifies the commit object.A set of files, reflecting the state of a project at a given point in time.The repository is stored within the project.git directory, located in the root directory of the project. The GIT repository is stored in the same directory as the project itself in a -hidden- subdirectory called. A set of references to commit objects, called heads.Architecture of a RepositoryĪ GIT repository comprises the following: The purpose of GIT is to interact with the repository of a project (a set of files) as they change over time. Each developer has their own version of the project locally for as long as they want.The code is backed-up all the time with the latest version as the principal.If both developers updated the exact same code, GIT will ask the last editing developer to solve any possible conflict.Downloading and integrating someone else’s code (or any code) into your project without much hassle and doing so automatically.If two developers work on the same page (file), GIT will compare both versions and will (try to) merge them into a new one.With a repository we are addressing the following: That’s why we need a repository of information to centralize and manage changes. Normally, you collaborate with other developers, and, without GIT, that becomes a big problem. Why Bother to use GIT?īeing the only developer in a project is a utopia. Throughout the years, we have learned that the best way to teach GIT is by understanding the concepts and meaning of the technology first, rather than just giving you a list of commands to use. GIT is more than just a "set of commands" that you have to learn. So you’d better learn and be comfortable with it. You will be using it every day, several times a day. DON’T procrastinate because you cannot avoid it. GIT is a great technology, please take the time to learn it. □ This is an amazing video explaining git and github GIT is a MUST! ☝️ We have also prepared an interactive tutorial about GIT click here to take it!
0 Comments
Leave a Reply. |