About Git

Git is a version control system that allows you to track changes in your project over time, collaborate with others, and manage versions effectively.

While Git is just one implementation of the many types and approaches to version control, there are other systems too, like CVS (Concurrent Versions System), SVN (Apache Subversion), and Mercurial.

However, Git has become the most widely used version control system in the world due to its speed, flexibility, and powerful branching/merging features

Git was created by Linus Torvalds (the creator of Linux) in 2005. You can learn more about its naming on the Git Wikipedia page.

 


What Git Can Do for You

Git combines several key features to make it beginner-friendly while also powerful enough for advanced projects.

Track Your Changes:

  • The main motivator for using Git is that it allows you to track changes made to your files. 
  • Git keeps a history of your project by taking snapshots of your project at different points (called commits).
  • Each commit represents a point in time, allowing you to look back at your work and even go back to a previous version if something goes wrong.

Experiment Safely:

  • You can create development branches with Git to try out new ideas or fix issues without affecting the main project.
  • If you like your changes, you can merge the development branch into the main branch.

Collaborate Easily:

  • Whether you're working on your own or with others, Git helps you manage changes and keep track of who did what.
  • There are web-based repositories that allow you to use VC/Git from within a browser.
  • Platforms like GitHub, GitLab, and Bitbucket work with Git to make collaboration easier by hosting your project online, allowing others to contribute or review your code. We will dive deeper into GitHub in Lesson 4.

Work Offline:

  • Git is a distributed system, meaning every contributor has a full copy of the project on their computer.
  • This allows you to work on your project offline, and later sync your changes when you're back online.
Vous avez terminé 100 % de la leçon
100%