DEV Community

caitlinnorse
caitlinnorse

Posted on

Git Me a Lesson on How to Use Git

What is Git?

Git is a distributed version control system, which means that it tracks the history of changes as people and teams collaborate on projects together. Because it is a distributed version control system, it is used commonly for open source and commercial software development. Users have full access to every file, branch, and iteration of a project, without the need for a constant connection to a central repository. This means that developers can work any time, anywhere, and collaborate asynchronously.

Why Should I Learn Git?

If you plan on going into the technological workforce, you will more than likely have some experience with Git. According to Github, “more than 70% of developers use Git, making it the most-used VCS in the world”. Using Git allows developers interaction with the history of their project, cloning, creating branches, committing, merging, comparing changes across versions of code, and so much more. It allows multiple developers to work separately and together, without the fear of overwriting others work or making detrimental and irrecoverable changes.

How Does Git Work?

Git works by using repositories. Repositories are like Git projects. They contain all of the files and folders associated with the project, as well as a list of the files revision history. Each change that is made is a “commit”, which is a linked-list relationship, which is then organized into branches that are multiple lines of development. Once changes have been made, you can make a Pull Request, which is a way of submitting contributions to the project. Your team and you will be able to discuss the changes by commenting, testing, and reviewing the open pull test. When a decision has been made, you can then merge the material .

All in all, Git may seem very confusing and difficult to master, but it is a valuable tool to have in the workplace. I promise, you will never be able to Git away from it!

A Guide to Git

Click Here to listen to me talk about Git & Github.

Check out my Channel!

Top comments (0)