Programing

“git difftool”이 도구를 직접 열지 않는 이유는 무엇입니까?

lottogame 2020. 6. 12. 22:05
반응형

“git difftool”이 도구를 직접 열지 않는 이유는 무엇입니까?


나는 이렇게 구성 git했다.

git config --global diff.tool meld

내가 실행할 때 :

git difftool

다음과 같은 메시지가 나타납니다.

Viewing: 'hello.txt'
Hit return to launch 'meld': 

그럼, 누르면 Enter, meld시작됩니다.

meld입력 후 바로 시작 되도록이 메시지를 어떻게 비활성화 할 수 git difftool있습니까?


man git-difftool

OPTIONS
   -y, --no-prompt
       Do not prompt before launching a diff tool.

옵션도 있습니다 :

difftool.prompt
  Prompt before each invocation of the diff tool.

다음 명령은 프롬프트를 전체적으로 해제합니다 (모든 저장소에 대해).

git config --global difftool.prompt false

글쓰기와 같습니다 ( ~/.gitconfig또는 %HOMEDRIVE%%HOMEPATH%\.gitconfig)

[difftool]
  prompt = false

참고 URL : https://stackoverflow.com/questions/7897517/why-does-git-difftool-not-open-the-tool-directly

반응형