Branch 'main' cannot push to code crafters CLI

Since Git now names the default branch main instead of master, I think it would be a good idea for the codecrafters CLI to be able to run tests on the main branch instead of solely on master.

I came across this issue when I pushed my code crafters project to my own GitHub account, and then cloned it from my account to a second machine I worked on. My default branch was named main, and it took me a couple minutes to figure out what the issue was. Correcting this behavior can help newer programmers from wandering into the same issue

3 Likes

yup i feel the same . my default git is configured to have main branch as default

1 Like