git log
###
### Commit RANGE from Older to Newer
### OLDER commit NEW COMMIT
git rebase 1483870be2e905111234c4a9ce654c3108dcfdbc b9f14b69ba7f62dd6bbcbb986dc0de75a643b14a -i
You will see something like this:
pick fbb89b1 This is a dummy message
pick fbb89b2 This is a dummy message
pick fbb89b3 .
pick fbb89b4 .
Change it to be all "s"(squash) but the first commit "p"(pick):
p fbb89b1 This is a dummy message
s fbb89b2 This is a dummy message
s fbb89b3 .
s fbb89b4 .
Them you will write a commit message:
ARCH-12345: This is a git commit POC
git rebase -i --root
You will see something like this:
```bash
pick fbb89b1 This is a dummy message
pick fbb89b2 This is a dummy message
pick fbb89b3 .
pick fbb89b4 .
Change it to be all "s"(squash) but the first commit "p"(pick):
p fbb89b1 This is a dummy message
s fbb89b2 This is a dummy message
s fbb89b3 .
s fbb89b4 .
Them you will write a commit message:
ARCH-12345: This is a git commit POC
git push origin -f
git rebase --abort
more on https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History