Gazler / githug

Git your game on!
MIT License
6.84k stars 1.03k forks source link

Several levels don't recognize default branch not named `master` #280

Open bakerkretzmar opened 4 years ago

bakerkretzmar commented 4 years ago

My default branch name is main and many levels wouldn't accept the solution until I made a new branch called master and attempted there instead.

Affected levels include 4, 16, 19, 20, 23, 28, 33, 34, 37, 41, 47, and probably others. I couldn't work around the issue on level 47 and had to reset my default branch name to master again temporarily, so after that I'm not sure which ones are affected.

I may attempt a PR this weekend but I don't know Ruby so 🤷‍♂️

Stowaway4331 commented 11 months ago

If you don't feel like using a workaround for this, use the commands git config --global init.defaultBranch master githug reset

All levels will now use master as the default branch.