![Forrest logo](/images/logo.png)
git-mergetool:tldr:cee73
The command git mergetool --no-gui
is used to invoke Git's merge tool without a graphical user interface (GUI).
When resolving merge conflicts in Git, the default behavior is to open a GUI-based merge tool, if configured, to help you visually compare and merge conflicting changes. However, utilizing the --no-gui
option disables the GUI interface and instead uses a text-based interface for resolving the conflicts.
By running git mergetool --no-gui
, Git will launch the configured merge tool in a terminal or console window, allowing you to manually review and edit the conflicting sections of the files directly in your preferred text editor.
This command is useful when working on systems without a GUI or when you prefer to use a text-based tool for merging conflicts, such as Vimdiff or Emacs. It gives you greater control and flexibility in resolving conflicts within your codebase.