Get started with Git

Get Ready

Article from Issue 286/2024
Author(s):

Git comes up all the time in discussions of Linux, but in our new world of repositories and package managers, many users are still unfamiliar with it. Read on to get started with this powerful version control environment.

Code and version management used to be difficult and risky. Users were never quite sure whether they would keep or lose their last changes when switching to a different development branch. Attempts to merge the results of hours of work could sometimes lead to unexpected results.

Before Git [1] became the de facto standard, CVS [2] was the most widely used version management system. In CVS, all changes must be uploaded to a central server and the user needs a functioning network connection. In addition, CVS only saves the individual changes and never a complete version of the code. When merging the work of two developers, branching can lead to conflict situations that can be very time consuming to resolve. Other systems such as Subversion (svn) [3] or Mercurial (hg) [4] brought about significant improvements, but at the end of the day, Git worked best and is the most widely accepted option.

Git offers a revolutionary, decentralized approach: mirroring the entire repository, including the complete history of all files, on the computers of all users. At the same time, Git always creates complete snapshots of the entire repository.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Branch Management

    Git makes version control as simple as possible. To manage your Git branches successfully, you need to learn the ins and outs of git branch and git merge.

  • Remote Git Repositories

    Software projects often comprise several code branches, some of which exist in parallel. Git supports community code development through remote repositories and code branching.

  • Tree View

    Complex Git projects sometimes require a better view of the dependencies and branches. Several tools offer GUI options for Git. We take a look at gitk, gitg, git-gui, and GitAhead.

  • Git Ready

    If you develop open source software, you need to know how to use Git. Information on Git fills books, but this basic overview will get you started with a vital open source development tool.

  • Git Essentials

    Once you've started using Git, these seven utilities can help you get the most out of this essential version control system.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News