Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I git merge with no fast forward in visual studio 2022?

I use --no-off git flag for with no fast forward merge how can I use no fast forward in visual studio

I use command below for this

git merge --no-ff feature_newfeature

I want use git merge with no fast forward in visual studio 2022

like image 640
Mohammad Ramezani Avatar asked Sep 02 '25 17:09

Mohammad Ramezani


1 Answers

This can be done in Visual Studio 2022. First, in the main menu Git > Settings (or Tools > Options), de-select "Commit changes after merge by default":

enter image description here

Then merge your branch, and you will get a little dialog like this one:

enter image description here

Here, leave the checkbox unticked.

When you click "Merge" you will get the chance to enter your merge message.

I still think is better and faster to just use the terminal command.

Here is some info about it in Microsoft's help: https://learn.microsoft.com/en-us/visualstudio/version-control/git-settings?view=vs-2022#commit-changes-after-merge-by-default

like image 125
alondono Avatar answered Sep 05 '25 06:09

alondono