I am strugging with this git rebase/squash.
I currently have 4 commits of code, these 4 commits have multiple changes on them.
I want to make all these 4 commits into 1, doesnt matter if I lose or not the commit messages.
So I tried this:
Squash my last X commits together using Git
git rebase -i HEAD~4.
Dont know in what part of my commit history sent me but I had many modified files and couple of them were outdated with the last commit.
Revert all to origina and then I tried
git reset --hard HEAD~5
git merge --squash HEAD@{1}
git reset worked and sent me to a commit, but then the --squash just couldnt perform
git merge with --no-ff and --squash
So basically couldnt use it either, couldnt figure it out how to the no-ff works without having tons of things to change
Is there any way that I could make it work?