Posted By

jturmel on 01/19/10


rebase git commit squash

Versions (?)

Squashing a Git commit

 / Published in: Bash


WARNING: "git rebase" changes history. Be careful. Google it.

git rebase --interactive HEAD~10 (then change all but the first "pick" to "squash") squash the last 10 commits into one big commit

  1. git rebase --interactive HEAD~10

Report this snippet  

You need to login to post a comment.