Manage and share files with Git

Many Branches

© Lead Image © germina,

© Lead Image © germina,

Article from Issue 217/2018

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

Real projects usually are not linear: When many developers work on code, parallel branches are the rule. Git allows you to store your code branches in a repository (repo), and even changing the directory structure does not cause any problems.

The example from the first part of this series [1] comprises three text files located in a local repository, which is usually sufficient just to manage files. However, if you work in a team, being able to link your project to a remote repository has advantages.

The corresponding git commands you will use are clone (create and check out a project), push (transfer data to the remote repository), fetch (get data from a remote repository), and pull (get and merge data). In this context, the term "data" represents the linked or specified references and objects in the Git index.


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

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Git 101

    When several people collaborate on source code or documents, things can get messy fast. Git provides a quick cure: The distributed versioning system reliably ensures the integrity and consistency of data with minimal effort.

  • Perl: Collaborate with GitHub

    GitHub makes it easier for programmers to contribute to open source projects by simplifying and accelerating communications between project maintainers and people willing to contribute.

  • GitX Clone Gitg Moves to 0.0.4

    The young Gitg project, which visualizes a graphical representation of git data for Mac OS X under Gtk+/GNOME, allows check-ins and merges in its newest release 0.0.4, among other things.

  • Perl: Tracking Online Orders

    A distributed database based on the distributed Git version control system relies on a Perl script to help users track Internet orders. When the goods arrive, purchasers update their stock counts, wherever they may be at the time.

  • Mercurial: Version 1.0 with Various Improvements

    Version 1.0 of Mercurial, a distributed version control system, has just been released.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95