Git Squash-Merge Command Line
By using the git squash-merge command you can combine multiple commits into a single commit. After using the git squash command your repository will be clean and organized manner.
git merge --squash feature-branch
To merge the changes in the feature branch to your current branch we can use the above command.