Skip to main content

Git과 텍스트 편집기 연결

텍스트 편집기를 사용하여 Git으로 파일을 열고 편집합니다.

Platform navigation

Visual Studio Code를 편집기로 사용

  1. Visual Studio Code(VS Code)를 설치합니다. 자세한 내용은 VS Code 설명서의 “VS Code 설정”을 참조하세요.

  2. Terminal(터미널)Terminal(터미널)Git Bash를 엽니다.

  3. 다음 명령을 입력합니다.

    git config --global core.editor "code --wait"
    
  1. Visual Studio Code(VS Code)를 설치합니다. 자세한 내용은 VS Code 설명서의 “VS Code 설정”을 참조하세요.

  2. Terminal(터미널)Terminal(터미널)Git Bash를 엽니다.

  3. 다음 명령을 입력합니다.

    git config --global core.editor "code --wait"
    
  1. Visual Studio Code(VS Code)를 설치합니다. 자세한 내용은 VS Code 설명서의 “VS Code 설정”을 참조하세요.

  2. Terminal(터미널)Terminal(터미널)Git Bash를 엽니다.

  3. 다음 명령을 입력합니다.

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

Sublime Text를 편집기로 사용

  1. Sublime Text를 설치합니다. 자세한 내용은 Sublime Text 설명서에서 “설치”를 참조하세요.

  2. Terminal(터미널)Terminal(터미널)Git Bash를 엽니다.

  3. 다음 명령을 입력합니다.

    git config --global core.editor "subl -n -w"
    
  1. Sublime Text를 설치합니다. 자세한 내용은 Sublime Text 설명서에서 “설치”를 참조하세요.

  2. Terminal(터미널)Terminal(터미널)Git Bash를 엽니다.

  3. 다음 명령을 입력합니다.

    git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
    
  1. Sublime Text를 설치합니다. 자세한 내용은 Sublime Text 설명서에서 “설치”를 참조하세요.

  2. Terminal(터미널)Terminal(터미널)Git Bash를 엽니다.

  3. 다음 명령을 입력합니다.

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

TextMate를 편집기로 사용

  1. TextMate를 설치합니다.

  2. TextMate의 mate 셸 유틸리티를 설치합니다. 자세한 내용은 TextMate 설명서에서 “matermate”를 참조하세요.

  3. Terminal(터미널)Terminal(터미널)Git Bash를 엽니다.

  4. 다음 명령을 입력합니다.

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

메모장++를 편집기로 사용

  1. https://notepad-plus-plus.org/에서 메모장++를 설치합니다. 자세한 내용은 메모장++ 설명서에서 “시작”을 참조하세요.

  2. Terminal(터미널)Terminal(터미널)Git Bash를 엽니다.

  3. 다음 명령을 입력합니다.

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