Default branch for remote project references

Hi,

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.

Cheers,
John

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

ie hitHub.com/foo/bar:main

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

1 Like