Log and Diff 예제
- GitHub 에서 Remote Repository 생성
- 이름 : diff_project
- 옵션 : README.md

- Local 에 Clone
git clone https://<name>:<token>@github.com/LeeSoTI/diff_project.git
- Local Repository 에서 파일 생성 후 Push
- text.txt
- 파일 내용 : my name is noma.
cat > text.txt
my name is noma.
git add text.txt
git commit -m 'create text.txt' text.txt
git push origin main
- Main Branch 에서 파일 수정 후 마지막 commit 한 내용과 비교
cat > text.txt
my name is zero
git difftool head

- Main Branch 에서 수정한 내용을 commit 한 뒤 Remote Server 와 비교
git commit -m 'modify name - zero' text.txt
git difftool main origin/main

- Dev Branch 생성 후 이동, 파일을 수정한 뒤 Master Branch 와 비교
- Branch 이름 : dev
- 파일 수정 : my name is base. (commit)
git checkout -b dev
cat > text.txt
my name is base.
git add text.txt
git commit -m ' modify name - base' text.txt
git difftool main dev

- Dev Branch 에서 두번째 commit 과 마지막 commit 비교
- 두번째 Commit Message : create test.txt
- 마지막 Commit Message : modify name - base
git log

- cb44adce8a8572e579c9aaaf13f3dfc1f04379d4
- bc74d8a239c77f7cd63dca971e1d0023785ff627
git difftool cb44adce8a8572e579c9aaaf13f3dfc1f04379d4 bc74d8a239c77f7cd63dca971e1d0023785ff627

- Git Grpah 확인
- VSCode 에서 diff_project 의 Git Graph 를 Branch 별로 확인
