StrategyCeleryWebsite icon indicating copy to clipboard operation
StrategyCeleryWebsite copied to clipboard

Squash commits

Open femtotrader opened this issue 8 years ago • 1 comments

For a better understanding of commits you might squash commits http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html

$ git rebase -i HEAD~3

replace

pick MY COMMIT MESSAGE
pick 2nd COMMIT MESSAGE
pick 3rd COMMITMESSAGE

by

pick MY COMMIT MESSAGE
s 2nd COMMIT MESSAGE
s 3rd COMMITMESSAGE

and

$ git push -f

femtotrader avatar Feb 18 '17 15:02 femtotrader

Could you explain about "squash commits"? I am not good at git operation. I only use git commit -m "" and git push.

easytrader avatar Feb 19 '17 09:02 easytrader