programing

"git diff tool"이 툴을 직접 열지 않는 이유는 무엇입니까?

jooyons 2023. 6. 24. 09:01
반응형

"git diff tool"이 툴을 직접 열지 않는 이유는 무엇입니까?

구성했습니다.git다음과 같이:

git config --global diff.tool meld

실행할 때:

git difftool

다음 메시지가 표시됩니다.

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

그러면 제가 누르면.meld시작합니다.

이 메시지를 비활성화하려면 어떻게 해야 합니까?meld입력 후 바로 실행됩니다.git difftool?

다음과 같은 옵션도 있습니다.

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

다음 명령은 전체적으로(모든 리포지토리에 대해) 프롬프트를 끕니다.

git config --global difftool.prompt false

그것은 편지를 쓰는 것과 같습니다.~/.gitconfig:
(또는 안에)%HOMEDRIVE%%HOMEPATH%\.gitconfig)

[difftool]
  prompt = false
man git-difftool

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

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

반응형