git diff vs git diff HEAD 전자는 unstaged 된 (=git add 된것은 제외) 후자는 staged 유무와 상관없이 diff 를 보여줌 즉 HEAD와의 모든차이점을 보여준다.(last commit과의 차이점) git diff --staged (--cached) staged 된 차이점만 보여준다. git diff [filename] 특정 파일에 대해서만 diff 사항을 보여줌 git diff [branch1]..[branch2] branch 끼리의 diff 를 수행 로도 수행 가능함. git diff [commit1] [commit2] commit 끼리의 diff 수행 수행해서 나오는 commit number로 수행