Github - Inspect and Compare - Part 2

This is the continuation of part 1 - link. Here is a list of commands that are widely used to inspecting and comparing. To examine logs, diffs and object information.

git log
shows the commit history for the currently active branch.

git log branchB..branchA
shows the commits on branchA that are not on branchB.

git log --follow [file]
shows the commits that changed the file, even across renames.

git diff branchB...branchA
shows the diff of what is in branchA that is not in branchB.

git show [SHA]
shows any object in Git in human-readable format.

My next blog post part 3 will be working with snapshots and Git staging area.

No comments:

Post a Comment