Working with Git branches

Learning by Doing

These operations are not as complex as they may seem from my explanation. Working with Git involves doing the same thing over and over again, and these operations soon become second nature. Learn the ins and outs of git-branch and git-merge, and you will soon learn most of what you need to use Git day by day.

You'll understand, too, why Git was so quickly and widely accepted. Being originally written by Linus Torvalds helped, but the greatest reason for Git's popularity is that it takes the complex task of version control and makes it as simple as possible.

Infos

  1. "Command Line – Git Version Control" by Bruce Byfield, Linux Magazine, issue 237, August 2020, pp. 54-57
  2. Git: https://git-scm.com/
  3. git branch: https://git-scm.com/docs/git-branch
  4. git merge: https://git-scm.com/docs/git-merge
  5. git-big-picture: https://github.com/esc/git-big-picture

The Author

Bruce Byfield is a computer journalist and a freelance writer and editor specializing in free and open source software. In addition to his writing projects, he also teaches live and e-learning courses. In his spare time, Bruce writes about Northwest coast art (http://brucebyfield.wordpress.com). He is also co-founder of Prentice Pieces, a blog about writing and fantasy at https://prenticepieces.com/.

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

  • 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.

  • 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.

  • 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