default remote branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

the 'git remote show <remote>' command shows the default branch among
other things.
The default branch being the branch that a clone will have immediately
after cloning.

Is it possible to run a command that only shows that default branch
for a given remote?

Also, I tried finding out whether I can use the
.git/refs/remotes/<remote>/HEAD to check the default branch without
accessing the remote. However, I find this file is not updated with a
git fetch, nor created when missing.

So is there a sane way to get the last know default branch without
accessing the remote?
If so, is there a way to update local information about the default
branch of a remote?

cheers,
  Thibault
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]