default VIM editor for SVN and GIT config

Posted under » Version Control on 12 July 2019

Encountered "svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set," when you want to commit.

You can get around this by the -m option.. ie

svn commit -m "This is why I do this commit"

Or you can set SVN_EDITOR environment variable by

export SVN_EDITOR=vim

If you wish to set SVN_EDITOR environment variable permanently, then u need to add this line to your bash file which is located at your home folder. (eg: /home/anoneh/.bash_profile)

If .bash_profile does not exists, you should create one.

export SVN_EDITOR=vim

Similarly, you can do this for GIT by

$ git config --global core.editor vim

To see all of your git config

$ git config --list

You may switch the default git user by

$ git config --global user.name "Your Name"
$ git config --global user.email "youremail@yourdomain.com"

For git ignore list.

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS data