I cloned a repo (using fictious examples here)
$ git clone http://someplace.somedomain.name/resource.git
went to the directory
$ cd resource
and then tried to edit a file within the resource directory
/home/shirish/resource $ editor somefile.txt
Now I am not familiar with what editor is being used by git and if it something internal. I am running git 2.11.0 on Debian testing.
I did hunt around and saw this https://help.github.com/articles/associating-text-editors-with-git/ but the documentation doesn't tell me how do I search to know/see which editor it uses. Is there a way ?
editor
is not a variable. In Debian, it's aliased to an editor command. Seewhich editor
, and alsonamei $(which editor)
.git config --global core.editor XXX
, it usually goes into~/.gitconfig
. You can also ask Git what is the value of that variable by issuing the same command withoutXXX
.