Timeline for How to squash all git commits into one?
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2021 at 7:44 | history | edited | sashoalm | CC BY-SA 4.0 |
I hope it's okay to change it to that, for people who just copy the line as-is, this message would make sense in most cases :)
|
Oct 18, 2020 at 20:05 | history | edited | Asclepius | CC BY-SA 4.0 |
added 110 characters in body
|
Oct 18, 2020 at 19:52 | history | edited | Asclepius | CC BY-SA 4.0 |
deleted 1 character in body
|
Aug 18, 2016 at 9:51 | comment | added | denns | @kusma in my opinion git bash with mintty should be used anyway in windows. | |
Feb 18, 2016 at 23:48 | comment | added | Bernard |
In Windows prompts, you might have to quote the last parameter: echo "message" | git commit-tree "HEAD^{tree}"
|
|
Jul 23, 2014 at 15:04 | history | edited | user456814 | CC BY-SA 3.0 |
Fixed spelling.
|
Jun 11, 2014 at 2:21 | history | edited | sanmai | CC BY-SA 3.0 |
added 23 characters in body
|
May 5, 2014 at 16:36 | comment | added | kusma | The reason I didn't suggest the subshell-variant myself, is that it won't work on cmd.exe in Windows. | |
May 4, 2014 at 0:38 | comment | added | tldr | @ryenus, your solution did exactly what I was looking for. If you add your comment as an answer, I'll accept it. | |
Jan 23, 2014 at 14:04 | comment | added | chesterbr | ^ THIS! - should be an answer. Not entirely sure if it was the author's intention, but was mine (needed a pristine repo with a single commit, and that gets the job done). | |
Feb 4, 2013 at 7:19 | comment | added | ryenus |
git reset $(git commit-tree HEAD^{tree} -m "commit message") would make it easier.
|
|
May 10, 2012 at 8:30 | history | edited | CharlesB | CC BY-SA 3.0 |
added 10 characters in body
|
Nov 3, 2009 at 23:28 | history | answered | kusma | CC BY-SA 2.5 |