gitpractice.dev

brewly — Ch.8 · What is in a release?

Exercise 5 of 5

Before you start

Describing and comparing

git describe names your commit after the nearest tag: v1.1.0-2-gabc1234 means two commits after v1.1.0, at commit abc1234.

A..B in log lists the commits in B that are not in A: your release notes.

git diff A B shows what changed between them; --stat just counts per file.

git describe
which version am I on?
git log --oneline <old>..<new>
the commits in between
git diff --stat <old> <new>
the files that changed
You can reopen this any time with “Lesson”.

Continue on a desktop

Typing git on a small screen is no fun. Open this page on a laptop or desktop to practise.

Back to the path