I have forked a quick-start repo and built an app on top of it. The quick-start repo contained ~30 commits. The last commit of their repo is, say, abcde
and first commit of mine is, say, fghij
. How can I squash all of the commits, from first to abcde
, so that there is only one, big commit before fghij
.
Could you please explain it line by line. I don't understand other answers under similar topics.
Example history tree of commits now:
klmno - Currently newest commit
.
.
.
fghij - Initial commit of mine
abcde - Last commit made by them
.
.
vwxyz - Initial commit of theirs
Example history tree of commits expected:
klmno - Currently newest commit
.
.
.
fghij - Initial commit of mine
prstu - Fresh X installation