[keycloak-dev] Commits/PRs

John Dennis jdennis at redhat.com
Thu Mar 10 13:12:31 EST 2016


On 03/10/2016 01:03 PM, Bill Burke wrote:
> Is there a way to automatically squash everything to your latest
> commit?

Maybe not automatically, but the conventional way to squash commits is 
with interactive rebase, e.g.

% git rebase -i commit

where commit is the commit id of the *prior* commit you want to start 
the squashing from. Git will fire up your defined editor and you just 
replace the pick keyword with the squash keyword for each commit to be 
squashed. Many examples on the web. It's not automatic but usually less 
than a minute from start to finish.

HTH,

-- 
John


More information about the keycloak-dev mailing list