Johannes Haux

Git for Code Reviews

Your pull requests are hard to review. This talk provides the technical Git skills—from atomic commits to autosquash—to finally fix that.

Git for Code Reviews
#1about 2 minutes

Understanding the Git Flow branching model

The Git Flow model uses long-lived stable and develop branches alongside short-lived feature branches to structure collaborative work.

#2about 6 minutes

Staging parts of a file for atomic commits

Use the `git add -p` command to interactively stage specific parts of a file, creating clean, single-purpose commits.

#3about 3 minutes

Updating the latest commit with git amend

The `git commit --amend` command allows you to add staged changes to the most recent commit, effectively rewriting it.

#4about 2 minutes

Updating a branch with git rebase

Use `git rebase` to move a feature branch onto the latest commit of its base branch, maintaining a linear history.

#5about 2 minutes

Modifying older commits with interactive rebase

An interactive rebase (`git rebase -i`) allows you to stop at a specific commit in your history to edit, amend, and then continue.

#6about 3 minutes

Using fixup commits and autosquash for easier edits

Create `fixup!` commits that target older commits and then use `git rebase -i --autosquash` to automatically merge them in.

#7about 4 minutes

Q&A on code review tools and git best practices

The speaker answers audience questions about prioritizing comments, the risks of rebasing shared branches, and writing effective commit messages.

Related jobs
Jobs that call for the skills explored in this talk.

test

Milly
Vienna, Austria

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
AM
Ashutosh Mishra
19 Great VS Code Extensions
Great VS Code ExtensionsAs a developer, your code editor is your most important tool. One of the perks of using VS code is the numerous extensions available to enhance your workflow. In this article, we’ll explore some of the best VS code extensions ...
19 Great VS Code Extensions

From learning to earning

Jobs that call for the skills explored in this talk.

Full-Stack Developer

Full-Stack Developer

Friedrich Kicherer GmbH & Co. KG
Ellwangen (Jagst), Germany

Junior
Intermediate
Senior
GIT
Docker
JavaScript