Understanding and using Git

Summary

At the Chemnitz Linux Days 2009, Stephan Beyer gave an introduction to the distributed version control system Git. Git was already being used for projects such as the Linux kernel, Rails, VLC, Wine and X.org. The talk explained the basic principles and day-to-day work with Git and gave tips for an easy start.

What is Git and why distributed?

A version control system stores every change to files with author, time and description. Older systems such as CVS or Subversion have a central server without which you can hardly work. With Git, every copy has the complete history of the project. You can work offline, create branches quickly and merge changes later.

Linus Torvalds developed Git in a few weeks in 2005 after the kernel was no longer allowed to use its previous tool, BitKeeper, free of charge. The focus was on speed, support for many parallel branches and data integrity through checksums.

What became of it

In 2009 Git was still one of several distributed systems alongside Mercurial and Bazaar. With the success of GitHub, founded in 2008, it prevailed almost completely. Today Git is the standard for software development and is increasingly used for documentation, configuration and infrastructure too.

Ideas

  • Every Git copy contains the complete project history.
  • Branches are cheap and make parallel work easy.
  • Checksums protect the history from unnoticed changes.

Insights

  • Tools that arise from the real needs of large projects often become widespread.
  • Platforms such as GitHub can help decide the success of a tool.

Facts

  • Git was created in 2005, developed by Linus Torvalds.
  • In 2009 Linux, Rails, VLC, Wine and X.org, among others, used Git.
  • According to the announcement, not being afraid of the command line was enough as prior knowledge.

References

Remarks

  • Git is now also used for configurations and documentation, for example under the infrastructure as code principle.

Recommendations

  • Create a Git repository for configurations and scripts too, so that every change can be traced.
  • Write commit messages that explain why something was changed.

Open the programme item

Search the Web Archive

Found a mistake or have something to add? Get in touch.