(working directory에 있는)
workig directory에 잇는 것만 확인됨
git diff
staging area에 있는 것 확인 가능
git diff --staged git diff -- cached
vscode를 열고 vscode에 추가해야할 것
vscode 열기
git config --global -e
추가하기
[diff] tool = vscode [difftool "vscode"] cmd = code --wait --diff $LOCAL $REMOTE
다시 cmder에 돌아와서
실행하면 vscode에 working directory에 수정된 것을 확인할 수 있다.
git difftool
실행하면 vscode에 staging area에 예전에는 아무것도 없었고
새로 추가된 c파일에는 hello world가 추가git difftool --staged