Questions
Answer the following questions to test your knowledge of this chapter:
- How would you list all revisions that are present upstream for the current branch but are not present in the current branch (are not integrated)?
- How would you list all revisions that you would send using
git push
, allowing for a triangular workflow (remote to push to is different from remote to pull from)? - How can you find all divergent changes in two branches,
A
andB
, starting from a fork point, and show which changeset is present on which branch? - How can you list all commits that were made on any remote-tracking branch whose name starts with
fix-
, from any remote repository? - What is the simplest way of switching to the previous branch, and how does it work?