Default branch for remote project references


One of my repos has the default branch called main, so I get this error if I use * in the name

git: error: pathspec ‘master’ did not match any file(s) known to git

I don’t remember changing the setting in github so I wonder if it will become more common.


you can specify a branch with a colon, like you would a version for NuGet and Gradle


ps: don’t get me started on this stupid meme about replacing “master” with “main”… :(. it’s so bloody ridiculous.

1 Like