Answers
Here are the answers to this chapter’s questions:
- Combine the double-dot notation with the notation for the upstream branch:
git
log ..@
{upstream}
. - Use
git log @{push}..HEAD
, combining double-dot notation with the “where to push to” notation. Note that for simple workflows,@{push}
is the same as@{upstream}
. - Use the triple-dot notation and the appropriate
git log
option:git log --left-right
A...B
. - Use the
--remotes[=<pattern>]
option with the appropriate glob pattern:git
log --remotes=*/fix-*
. - Use
git checkout –
orgit switch -
. In those commands,-
means@{-1}
, which uses the reflog to find the previous value of the current branch.