Githug bug
Recently, while studying, I started using a program called "githug" to practice GitHub when I felt a bit tired. As I was review basic Git commands and techniques, I encountered a problem where I kept getting the message "Sorry, this solution is not quite right!" on several levels, despite entering the correct answers. Many people seem to be looking for a solution, but there doesn't appear to be a clear answer, so I decided to write this post.
The githug problems were likely created based on the 'master' branch. However, Git's default branch name has recently changed to 'main'. This discrepancy between the expected state in the problems and the actual state of the repository seems to have caused the issue.
To resolve this, you can change Git's default branch to 'master' for githug by using the command:
git config --global init.defaultBranch master
If you don't want to change your global Git settings, you can simply use:
git branch -m master
This will rename the current branch to 'master' in the specific repository you're working on for githug.