동일한 파일의 staged
과 unstaged
버전 간의 차이점을 보는 방법이 있습니까? 예를 들어difftool을 사용하여 동일한 파일의 준비 및 버전없는 버전 간의 차이점
: 그것을 준비하지 않고, 내가 변화를 준비하고 나는 다시 파일을 수정할 때이 문제가 발생
Changes to be committed:
modified: conf/application.conf
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: conf/application.conf
. 나는 diff
/difftool
명령을 사용할 필요가 있기 때문에
EDIT
git status -vv
명령은 충분하지 않습니다. 실제로는 너무 많은 파일에 너무 많은 변경 사항이 있기 때문에 모든 파일을 스크롤하는 것이 효율적이지 않기 때문입니다. 그러나 diff
/difftool
은 내가 관심있는 파일을 지정할 수있게 해준다.
그것은 같은 파일입니다. – Maroun
@MarounMaroun 예, 그게 핵심입니다. 힘내는 파일 자체가 아닌 파일 변경에 집중합니다. 이 질문을 참조하십시오 : https://stackoverflow.com/questions/24837841/git-can-a-file-be-both-staged-and-unstaged-for-commit – DrKaoliN