Based on my conversation with the user terbolous in #cloudstack: Changed the sequence of operations in the section "Initial setup of your fork" to move the two commands related to the upstream repository together.