I know that git notes can be fetched after cloning using:
git fetch origin refs/notes/*:refs/notes/*
or even be setup in git config to be always fetched.
However at clone time I do not get the notes, so I have to clone and then fetch. Although I do see that using --mirror
when cloning does get notes too. However my optimal setup would be that I could clone any repository without doing a mirror (since it implies --bare
and would also get other unwanted refs) and get the notes too.
Is there any way to setup for example git config to fetch specific additional refs at clone time ?