Sådan bruger du git log og gitk

gitk(1).

git-log(1).

Hvis man er fan af gitk-grafen, kan følgende alias bruges til at få en gitk-agtig udskrift fra git log:

git config --global alias.logk "log --decorate --oneline --graph"

Derefter vil git logk give en kompakt historik der viser branches og merges grafisk i venstre margen. Se eksempel nedenfor.

gitk eksempel

git logk eksempel

Med logk-aliaset fra tidligere fås en udskrift à la:

*   508e301 (origin/pipelining) Merge branch 'parallel' into pipelining
|\
| * 21bf70b Add ut-pipelining parallel_step
| * 92aca00 Support step() in parallelized pipelines.
| * ce6f988 Add some documentation in parallel.h
| * 88f5ee4 Support pipe_segment initialization hooks.
| * e1ec65a Align pipe_segment instances in parallel to a 64 byte boundary (common cache line size).
| * def625d Switch parallel pipelining code to using boost::threads directly. This fixes a serious deadlock problem.
| * 97cf538 Move parallel.h stuff into tpie::pipelining::parallel_bits namespace
| * 162e726 Add note about item_type in parallel.h
| * 8230187 Strengthen parallel code, such that it does not require the number of items
| * 5b33d61 Add TODO in parallel
| *   08147ac Merge branch 'pipelining' into parallel
| |\
| |/
|/|
* | ebc963d Gather pipelining documentation into a single document
* | b0e0830 Simplify Graham scan code by using less templates
* | 39c109c Use `class' keyword in pipelining when appropriate.
* | 3f59291 fixup! Replace old convex hull app with new pipelining convex hull app
* | c756184 Replace old convex hull app with new pipelining convex hull app
* | 4422a60 Add iterators tests to CMakeLists
* | f652286 Call pipe_segment::end() in actor order.
* | 4b3f9c0 Use push_input_iterator in pipelining2
* | 016bf6f Add typed_push_output_iterators, for output iterators like ostream_iterator that define value_type to be void (why?)
* | e888bc2 Make sorter forward number of items in output
* | 809c78c Improve test_pipelining code style

Indhold