mikeizbicki / cmc-csci046

CMC's Data Structures and Algorithms Course Materials
53 stars 154 forks source link

How to resolve "error: pathspec 'master' did not match any file(s) known to git" #338

Closed jbecker7 closed 1 year ago

jbecker7 commented 1 year ago

If you get this error trying to try running the practice quiz questions on your own machine, try changing any instances of "master" to "main." For example,

git checkout master

becomes

git checkout main

This is something that can be configured when installing Git--if you have it set to default to whatever Git chooses, the default branch name should now be "main."

If you are interested in why, here's an article about it.

mikeizbicki commented 1 year ago

The quizzes should be correct as-is with no modifications necessary. If you're getting an error message, then I'll have to take a look in person to see what happened.

We'll talk more about the difference between the main/master branches later in the semester.