Just run git config --global coreeditor nano and thats it.
Change default text editor linux command line. To know that is the default command line text editor in your system you can try one of the following methods. Replace filename with the name you wish to assign to your new file. To change the default command-line text editor follow these steps.
Set Nano as the Default Text Editor By default on most Linux systems the default text editor for commands such as visudo and crontab is set to vi. Its really easy to set the default editor using the update-alternatives command. Many of the utilities in Ubuntu Linux use a text editor to allow you to edit configuration options and files.
Different command line applications alike the crontab svn and visudo make use of the EDITOR variable to choose the default text editor. Or update-alternatives --config editor. Log in to your account using SSH.
To set vi as the. Set default text editor to pico. From now on youll edit your git commit messages using Nano rather than Vim.
An example of this is using the crontab command which allows you to edit your cron jobs using the default editor. Both the EDITOR and VISUAL environment variables determine which text editor is used at the default and you can set either to change the default behaviour to the text editor you prefer like so from the command line. Change your default text editor withbashrc Lets say Jim wants to use vim and Amy nano.
Add the following lines to the bashrc file. In an operating system such as Ubuntu you need to use a script inorder to change the default text editor known as the update-alternatives. Vim is an extensively configurable cross-platform and a highly efficient text editor.