DevShort: How to Squash in git
Apr 10, 2023
Sit on your feature branch
git rebase -i origin/master
follow the editor keep the first one as it as and the subsequent commits as “squash” without changing anything in has code.
Keep only one commit message and comment the rest all of them
git push origin <name-of-your-branch> -f