Yet Another Guide because existing ones don't work with shallow clones.
To fetch a specific remote branch and associate it with a local branch, use
git fetch REMOTE_NAME REMOTE_BRANCH:LOCAL_BRANCH.
This should work with all repos, including shallow repos.
You can follow this blog via its RSS feed or by searching for @binarycat@paper.wf on your Mastodon/ActivityPub instance.
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.