Sign in Go Pro

Squash Commits in Git with Interactive Rebase

07/22/2020

 
Autoplay

About

In this lesson, you'll learn how to squash commits with an interactive rebase in Git.

My Git lg alias. Add this to your ~/.gitconfig file.

[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset %an -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.