記事のバージョン: GitHub.com
Git とのテキストエディタの関連付け
テキストエディタを使って Git でファイルを開いたり編集したりしてください。
エディタとして Atom を使う
- Install Atom. For more information, see "Installing Atom" in the Atom documentation.
- ターミナルターミナルGit Bashを開いてください。
- 以下のコマンドを入力してください:
$ git config --global core.editor "atom --wait"
Using Visual Studio Code as your editor
- Install Visual Studio Code (VS Code). For more information, see "Setting up Visual Studio Code" in the VS Code documentation.
- ターミナルターミナルGit Bashを開いてください。
- 以下のコマンドを入力してください:
$ git config --global core.editor "code --wait"
エディタとして Sublime Text を使う
- Install Sublime Text. For more information, see "Installation" in the Sublime Text documentation.
- ターミナルターミナルGit Bashを開いてください。
- 以下のコマンドを入力してください:
$ git config --global core.editor "subl -n -w"
エディタとして TextMate を使う
- Install TextMate.
- Install TextMate's
mateshell utility. For more information, see "mate and rmate" in the TextMate documentation. - ターミナルターミナルGit Bashを開いてください。
- 以下のコマンドを入力してください:
$ git config --global core.editor "mate -w"
エディタとして Atom を使う
- Install Atom. For more information, see "Installing Atom" in the Atom documentation.
- 以下のコマンドを入力してください:
$ git config --global core.editor "atom --wait"
Using Visual Studio Code as your editor
- Install Visual Studio Code (VS Code). For more information, see "Setting up Visual Studio Code" in the VS Code documentation.
- ターミナルターミナルGit Bashを開いてください。
- 以下のコマンドを入力してください:
$ git config --global core.editor "code --wait"
エディタとして Sublime Text を使う
- Install Sublime Text. For more information, see "Installation" in the Sublime Text documentation.
- ターミナルターミナルGit Bashを開いてください。
- 以下のコマンドを入力してください:
$ git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
エディタとして Notepad++ を使う
- Install Notepad++ from https://notepad-plus-plus.org/. For more information, see "Getting started" in the Notepad++ documentation.
- ターミナルターミナルGit Bashを開いてください。
- 以下のコマンドを入力してください:
$ git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
エディタとして Atom を使う
- Install Atom. For more information, see "Installing Atom" in the Atom documentation.
- ターミナルターミナルGit Bashを開いてください。
- 以下のコマンドを入力してください:
$ git config --global core.editor "atom --wait"
Using Visual Studio Code as your editor
- Install Visual Studio Code (VS Code). For more information, see "Setting up Visual Studio Code" in the VS Code documentation.
- ターミナルターミナルGit Bashを開いてください。
- 以下のコマンドを入力してください:
$ git config --global core.editor "code --wait"
エディタとして Sublime Text を使う
- Install Sublime Text. For more information, see "Installation" in the Sublime Text documentation.
- ターミナルターミナルGit Bashを開いてください。
- 以下のコマンドを入力してください:
$ git config --global core.editor "subl -n -w"