Advanced Techniques in Git

02-09-22 Jordan Leven

You may use Git to collaborate with your team, but are you using it to elevate your codebase's history? Follow along to learn some advanced Git techniques like interactive rebasing.

Git is so much more than a chronological ledger of changes. You might use Git as a collaboration tool to synchronize code changes between developers, but are you capturing the growth of your codebase? In this video, we’ll go over techniques that you can use in your projects to elevate the history of your codebase as a valuable source of context and evolution.


How We Use Git

The basic usage of Git is focused on syncing code between developers and deploying code to production. But your repository is an untapped trove of context and evolution. In this section, we’ll talk about why Git is a more helpful collaboration tool when it’s not used as a verbatim ledger of changes.


Using rebasing to update the basis for your feature branch is a useful tool when incorporating new commits from the production branch. In this section, we’ll go over what rebasing is, how to use it, and how it can streamline the process for getting code changes into your feature branch.

Merging vs. Rebasing

You might be used to merging code changes from your production branch into your feature branch, but what about rebase merging? In this section, we’ll outline the differences between traditional merging and rebase merging and how using rebase merging makes for a clean and clear commit history in your production branch.

Interactive Rebasing

The final trick—interactive rebasing! This Git tool allows you to carefully curate your commit history to optimize the readability of your feature branch’s commit history. In this section, we’ll go over how you can use interactive rebasing to modify the commit history in non-production branches.

Advanced Techniques in Git — The Official Repo

Ready to take these new techniques for a spin? Check out the official companion repository to try out some of the tricks you’ve learned, including rebasing, interactive rebasing, commit history curation, and cherry-picking.

Words of Advice

Before you venture into the unknown, heed these words of advice! We’ll go over how combining multiple commits is easier than splitting single commits apart and talk about the Git Reference Log—your safety net for when interactive rebasing goes wrong.

Resources Section

Looking for more information? Check out these helpful resources:

Related Content

User-Centered Thinking: 7 Things to Consider and a Free Guide

Want the benefits of UX but not sure where to start? Grab our guide to evaluate your needs, earn buy-in, and get hiring tips.

More Details