关联文本编辑器与 Git
如果已安装相关编辑器,您可以在 Git 设置默认编辑器使用 Atom。
-
安装 Atom。
-
打开终端终端Git Bash终端。
-
输入此命令:
$ git config --global core.editor "atom --wait"
您可以在 Git 中设置默认编辑器使用 Sublime Text 3。
-
安装 Sublime Text 3。
-
打开终端终端Git Bash终端。
-
输入此命令:
$ git config --global core.editor "subl -n -w"
如果已安装 mate
命令,您可以在 Git 设置默认编辑器使用 Textmate。
-
安装 mate
-
打开终端终端Git Bash终端。
-
输入此命令:
$ git config --global core.editor "mate -w"
如果已安装相关编辑器,您可以在 Git 设置默认编辑器使用 Atom。
-
安装 Atom。
-
打开终端终端Git Bash终端。
-
输入此命令:
$ git config --global core.editor "atom --wait"
您可以在 Git 中设置默认编辑器使用 Sublime Text 3。
-
安装 Sublime Text 3。
-
打开终端终端Git Bash终端。
-
输入此命令:
$ git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
如果已安装相关编辑器,您可以在 Git 中设置默认编辑器使用 Notepad++。
-
安装 Notepad++。
-
打开终端终端Git Bash终端。
-
输入此命令:
$ git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
如果已安装相关编辑器,您可以在 Git 设置默认编辑器使用 Atom。
-
安装 Atom。
-
打开终端终端Git Bash终端。
-
输入此命令:
$ git config --global core.editor "atom --wait"
您可以在 Git 中设置默认编辑器使用 Sublime Text 3。
-
安装 Sublime Text 3。
-
打开终端终端Git Bash终端。
-
输入此命令:
$ git config --global core.editor "subl -n -w"