Possible Duplicate:
Are there any Git command to combine all our ugly commits together to one?
I’ve downloaded public git repo and fixed some stuff. I made several commits, mostly with random messages like “dsadsadsadasd”. Now I want to push back those changes but not as 10 messy commits but as one with good message. How can I merge those commits into one before pushing?
That’s the fastest way to do it. Replace
-C HEAD@{1}with-m "some other message"if you want a new message instead of the last one that you put in.Hope this helps.