Part 06. Git_Chapter 07. Log and Diff

수야·2023년 8월 3일
0

log and diff

git graph

버전이 증가하고 브렌치가 생겼다가 머지되었다가 하는걸 visual 적으로 볼 수 있음
vscode로 볼 수 있음

git log

브렌치 별 변경 이력을 볼 수 있음

git log

git editor설정

git diff

local branch간 확인

버전 비교

git diff <branch1> <branch2>

diff tool을 사용하여 보면

git difftool <branch1> <branch2>

commit간 비교

git diff <commithash> <commithash>

commithash :

마지막 commit과 이전 commit 비교

git diff HEAD HEAD^

마지막 commit과 현재 수정사항 확인

git diff HEAD

local and Remote간 비교

git diff <branch> origin/<branch2>

profile
수야는 코린이에서 더 나아갈거야

0개의 댓글