Skip to main content

Cette version de GitHub Enterprise Server ne sera plus disponible le 2025-03-05. Aucune publication de correctifs n’est effectuée, même pour les problèmes de sécurité critiques. Pour de meilleures performances, une sécurité améliorée et de nouvelles fonctionnalités, effectuez une mise à niveau vers la dernière version de GitHub Enterprise. Pour obtenir de l’aide sur la mise à niveau, contactez le support GitHub Enterprise.

Associating text editors with Git

Use a text editor to open and edit your files with Git.

Platform navigation

Using Visual Studio Code as your editor

  1. Install Visual Studio Code (VS Code). For more information, see Setting up VS Code in the VS Code documentation.

  2. Ouvrez TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "code --wait"
    
  1. Install Visual Studio Code (VS Code). For more information, see Setting up VS Code in the VS Code documentation.

  2. Ouvrez TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "code --wait"
    
  1. Install Visual Studio Code (VS Code). For more information, see Setting up VS Code in the VS Code documentation.

  2. Ouvrez TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "code --wait"
    

Using Sublime Text as your editor

  1. Install Sublime Text. For more information, see Installation in the Sublime Text documentation.

  2. Ouvrez TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "subl -n -w"
    
  1. Install Sublime Text. For more information, see Installation in the Sublime Text documentation.

  2. Ouvrez TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
    
  1. Install Sublime Text. For more information, see Installation in the Sublime Text documentation.

  2. Ouvrez TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "subl -n -w"
    

Using TextMate as your editor

  1. Install TextMate.

  2. Install TextMate's mate shell utility. For more information, see mate and rmate in the TextMate documentation.

  3. Ouvrez TerminalTerminalGit Bash.

  4. Type this command:

    git config --global core.editor "mate -w"
    

Using Notepad++ as your editor

  1. Install Notepad++ from https://notepad-plus-plus.org/. For more information, see Getting started in the Notepad++ documentation.

  2. Ouvrez TerminalTerminalGit Bash.

  3. Type this command:

    git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"