1

hello I have linux mint and when I type and press enter terminal always show this dialog how can I fix this problem enter image description here

Val Do
  • 2,695
  • 4
  • 20
  • 35

2 Answers2

2

That's nano–a text editor–and it is used as default commit message editor in git. To close it is very simple: press Ctrl and X same time. What you see in the screenshot is a commit message on a merge commit (because of the git pull).

If you want to change it into another editor, you have to run:

git config --global core.editor "vim"

...and additionally set the GIT_EDITOR environment variable:

export GIT_EDITOR=vim

(put this in ~/.bashrc)

The above will set vim as editor. If you want something visual, you may want to try gedit:

git config --global core.editor "gedit -w -s" 
Community
  • 1
  • 1
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474
1

In short

CTRL-O CTRL-X

The long version: you have local and remote changes. Git pull merges origin/branch with your current branch. Whey you do this, git wants to make a merge commit. You can type a commit message or simply use the default one (by typing the above commands)

BartBog
  • 1,889
  • 14
  • 28