Engineering Note

git template message 설정하기 본문

Git

git template message 설정하기

Software Engineer Kim 2021. 10. 30. 10:57

CLI 설정

git config --global commit.template <.gitmessage.txt 경로>

git config --global core.editor vim (git commit -> vi 에디터 화면으로 보기)

git config --global core.editor "code --wait" (git commit -> VSC 화면으로 보기)

GUI 설정

  1. .git폴더에 config들어가서
    [commit]
    template = .gitmessage.txt
Comments