Beginners Guide To Git
In this series we are going to cover all the most frequently used commands for working with Git. We will use a new Symfony project as the starting point for learning Git, but of course this knowledge applies to any code-related project.
I fully appreciate that Git can initially seem incredibly overwhelming. Not everyone is a fan of the command line, but I would strongly recommend that you learn to use the fundamentals of Git via the command line rather than relying on a GUI tool. That said, some aspects of using Git do favour a more visual approach, and we will cover some of these throughout the series.
To begin with, you will learn the commands required to get started using Git. This covers how to create a new Git repository, how to add and remove files and folders to and from this repository, and then how to push your code off to Github, GitLab, BitBucket, or similar.
From here we will continue with learning about Git branches. Branches become more important as your project grows, and / or you work with a team of other developers. Typically it is recommended to create a single new branch per feature you are working on. This can lead to conflicts when two or more developers change the same parts of a file independantly. This is something we will cover in greater depth in the second video.
From there on, you will have a good grounding in how to use Git in your day-to-day development duties. There always will be plenty more to learn. Learning Git can feel like a new programming language all over again.
However, sticking with it through the initial learning curve will result in a good working knowledge of the most widely used distributed version control system that currently exists. More than likely you will be expected to know about Git for almost any modern web-development job you choose to pursue. It really is that ubiquitous.
Anyway, enough of an introduction, let's see Git in action...