5. Inspect

6 cards

Review this deck
All cards in this deck

`git log --oneline`

compact history (hash + message)

`git log A..B`

commits in B that are not in A

`git blame <file>`

see who changed each line, in which commit

`git show <hash>`

full content of a commit

`git diff <branch1>..<branch2>`

diff between 2 branches

`git bisect start / good / bad / run`

binary search for the commit that introduced a bug

5. Inspect – Flashcards – Git | Học Dev