When I do git clone ...
, then git branch
shows the current branch is not master
.
Doing git checkout master
leaves me where I want. But this is actually what I don't want to do (nor force everyone else to do).
How can I make master
the current branch just after I clone the repository? That is, how can I change remote HEAD so that when someone clones the repo it is already on master?
I'm hosting my own repo, access over SSH to another machine in local network.