git log
git config --global core.editor <editorname> --wait
git config --global -e
[diff]
tool = vscode
[difftool 'vscode']
cmd = 'code --wait diff $LOCAL $REMOTE'
git diff <branch1> <branch2>
git difftool <branch1> <branch2>
git diff <commithash> <commithash>
git difftool <commithash> <commithash>
git diff HEAD HEAD^
git diff HEAD
git difftool HEAD
git diff <branch> origin/<branch2>
git difftool <branch> origin/<branch2>
git config --global -e
[merge]
tool = vscode
[mergetool "vscode"]
cmd = "code --wait $MERGED"
git merge <branchanme>
: 현재 위치한 branch에 다른 branch를 병합 git mergetool
→ diff 표시 → Conflict 코드 삭제 → 저장 → 종료 →git tab <tagname>
: 현재버전에 tag 달기 git log
: 태그 확인하기git tag <tagname> <commithash>
: 특정 버전에 tag 달기git push origin <tagname>
: Remote Repository에 pushgit tag
: 태그 목록보기git show <tagname>
: 특정 태그의 상세정보 보기git tag --delete <tagname>
: 태그 삭제git push --delete origin <tagname>
: Reomote Repository에서 삭제<pre><code>text</code></pre>
<link>
vi README.md
i
: 편집 모드esc
:wq