Git 6
--wait
command line으로 vscode를 실행시켰을 경우 vscode 인스턴스를 닫을 때까지 command를 대기
(1) 예시
git config --global core.editer --wait
git diff tool 설정
(1) git configuration 파일 열기
git config --global -e
(2) git diff 설정 추가
[diff]
tool = vscode
[difftool "vscode"]
cmb = "code --wait --diff $local $remote"
(git diff tool을 vscode로 설정하겠다.)
git diff - local branch 간 비교
git diff
git difftool
git diff - commit 간 비교
git diff
git difftool
git diff - 마지막 commit과 이전 commit 비교
git diff head head^
git dif - local and remote 간 비교
git diff origin/
Git 7
git merge
현재 위치한 branch에 다른 branch를 병합
충돌 해제
git add + git commit