Timeline for How to squash all git commits into one?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 22, 2019 at 6:15 | history | edited | David | CC BY-SA 4.0 |
added 5 characters in body
|
Nov 30, 2018 at 10:34 | history | edited | David | CC BY-SA 4.0 |
added 1 character in body
|
Nov 30, 2018 at 10:26 | comment | added | David |
@not2qubit no this will not preserve the previous commit messages, instead of commit #1, commit #2, commit #3, you'll get all of the changes in those commits packed into a single commit #1. Commit #1 will be the <root> commit you reset back to. git commit --amend --no-edit will commit all changes to the current commit which is <root> without needing to edit the commit message.
|
|
Nov 29, 2018 at 21:14 | comment | added | not2qubit | Will this preserve the previous commit messages? | |
Jul 19, 2018 at 14:12 | history | answered | David | CC BY-SA 4.0 |