Sign in Go Pro

Squash Commits in Git with Interactive Rebase

 
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

Good one!!

>