Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Please explain squashing to me

Gibran Shah August 31, 2016

Hello,

I'm relatively new to SourceTree. I've used it for a few months now and the I feel I understand the basic functionalities and features, but there are other features I'm still trying to understand.

In this case, I'm trying to understand how squash works.

It seems I can only squash commits once they're pushed to the master repository, not before. Is this true?

Also, why can I only squash through the rebasing interface? Squashing isn't necessarily rebasing, is it? If I click on the oldest commit, and say "rebase children of...", I can then squash all later commits to that one. But then what happens once I say "OK"? Will it rebase my code to that oldest commit? WITH the later ones squashed into it (effectively meaning there should be no change)? And what if I say "cancel"? It seems to undo my squash. So I can't squash without rebasing.

Can someone please explain how this works? Thanks.

1 answer

0 votes
karindpowell September 1, 2016

Perhaps this helps? https://youtu.be/mBCJCuU3p7I

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events