Archived video

This video is archived and won't be updated. We're keeping it online for now as a courtesy.

Working With Git Branches and Tags

Video loading...

Transcript language code: 

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:02
    [Chapter 6 with Blake Hall]
  • 0:05
    In this lesson, we'll take a look at a few concepts
  • 0:07
    that will help you keep the metadata in your repository organized.
  • 0:10
    First, we'll take a look at git tag
  • 0:13
    for labeling certain revisions of your software.
  • 0:16
    Then we'll take a look at how you can use git branch
  • 0:18
    and branches to manage development and make things a little bit easier on yourself.
  • 0:23
    We'll also take a look at how you can incorporate that work
  • 0:25
    into your code base later using git merge and git rebase
  • 0:29
    and how those different methods of incorporating your changes
Loading ...

Working with Git Branches and Tags


In this lesson we'll take a look at creating branches with the git branch command, and tags with the git tag command and explain the differences. Then we'll look at how and when they can be used and how to move changes from one branch to another using the git merge and git rebase commands and talk about the different ways in which those two commands effect the history of a project.

Note that Blake is using a shortcut for his git commit command, and is instead just using git ci. He is also using a nice, short way to add a commit message all at the same time, by adding the -m flag, for message, to his commit command. You can learn more about git aliases in the following video:

Blake is also using a command line modifier which displays the branch he is currently working in. There are many ways you can do this too. Blake recommends the following resource: