Skip to main content

GitKit (Linux Desktop Edition): Learn git and GitHub in Context

Section 4.10 Appendix A

The information in this appendix is only important if you were directed here from Exercise 4.1.2, otherwise it may be ignored.
You found in Exercise 4.1.2 that the main branch in your origin repository was not behind the main branch in the upstream repository. This would have happened if you created your fork and clone after the instructor merged the class pull requests for the Round 1 issues. You can recover from this situation using the commands below.
Ensure that you are in the GitKit-FarmData2 directory then use the following commands:
  1. git switch main
  2. git reset --hard 96d9ecee396a8a6b4bda3b2c787deeec6c353217
  3. git push --force origin main
You should now return to Exercise 4.1.2 and the main branch in your origin should now be behind the main branch in the upstream.
You have attempted of activities on this page.