You cannot combine --squash with --no-ff

Asked 3 months ago, Updated 3 months ago, 6 views

When I cut off the branch and went to master to git merge --squash<branch name>, I got an error You cannot combine --squash with --no-ff..

I think I understand the difference between --squash and --no-ff, but when I searched for this error statement, I couldn't find a specific solution.

Please teach me.


2022-09-30 11:45

1 Answers

I checked the gitconfig configuration and found that ff=false in the merge item.

This response was posted as a community wiki based on @Shioji Ryohei's comment.

2022-09-30 11:45

If you have any answers or tips

© 2023 OneMinuteCode. All rights reserved.