Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ Idea: Disable Auto Commit on Merge

Tags:

I want to disable Auto-Commit on Merge on Intellij Idea when Branch is merged from Branch Dialog as shown below.

enter image description here

I'm aware that if we use Merge Branch Dialog I have a option for No Commit.

enter image description here

Can I disable auto-commit on merge, when I merge branch from Branch View Dialog?

like image 544
A0__oN Avatar asked Jun 09 '16 04:06

A0__oN


People also ask

How do I turn off auto commit in IntelliJ?

In IntelliJ IDEA, you can select how you want to commit transactions: automatically or manually. To change the commit mode, use the Tx drop-down menu on the toolbar.

How do I merge without committing?

With --no-commit perform the merge and stop just before creating a merge commit, to give the user a chance to inspect and further tweak the merge result before committing. Note that fast-forward updates do not create a merge commit and therefore there is no way to stop those merges with --no-commit.

How do I turn off auto merge in Git?

Use git-reset or git merge --abort to cancel a merge that had conflicts. Please note that all the changes will be reset, and this operation cannot be reverted, so make sure to commit or git-stash all your changes before you start a merge.

Can I remove merge commit?

How to Undo a Merge Commit in Git. You can use the Git reset command to undo a merge. Firstly, you need to check for the commit hash (or id) so you can use it to go back to the previous commit. To check for the hash, run git log or git reflog .


2 Answers

While you can't configure it in IDEA itself currently, there is the possibility to set it in your git config. That will affect all git clients including IDEA.

 git config --global merge.commit no
like image 126
Alim Özdemir Avatar answered Sep 25 '22 04:09

Alim Özdemir


Using PyCharm follow the steps below, it is pretty much the same on Idea

enter image description here

enter image description here

enter image description here

like image 25
hevi Avatar answered Sep 23 '22 04:09

hevi