The GitHub command-line client, gh
, is very useful. However, the default repository for your GitHub Classroom clones is not your own repository but the original from which it was cloned. So if you execute a:
it doesn't take you to your repo at GitHub, but to the repo UACPSC/cpsc-421-oop-spring-2025-srcfacts-OOPS25-srcFacts, or whatever the original repo was.
The easy fix is to reset your default. The command is:
It will ask you to pick what you want as your default. Pick your repo. Here is an example run:
If you want to truly automate the command and not have to pick, you can use the following:
Note that you will have to do this every time you clone your repository.