git remote tag/branch without fetch


[lake@localhost refsw-prime]$ git remote  -vv
origin  ssh://[email protected]/mirror/broadcom/bse_refsw/refsw-prime (fetch)
origin  ssh://[email protected]/mirror/broadcom/bse_refsw/refsw-prime (push)
refsw-common    ssh://[email protected]/mirror/broadcom/bse_refsw/refsw-common (fetch)
refsw-common    ssh://[email protected]/mirror/broadcom/bse_refsw/refsw-common (push)
[lake@localhost refsw-prime]$
[lake@localhost refsw-prime]$ git ls-remote --tags    refsw-common   

###  branch/head only   (-t for tags,  -h for head) 
 git  ls-remote  -h       friendlyELEC
ee6fb217cbf3e81cd2c5f1a13f989cf59016781f        refs/heads/master
eca80cb313edd1632826a8a90f68c3b87521b02d        refs/heads/master-h3
4ef665ff6c6ff32a480478589ddf1df325c5f04d        refs/heads/nanopi-k2-v2015.01
ad46cf57242586d8959988afdaab8af00c33ddbb        refs/heads/nanopi2-v2016.01
ece0d370144fdecb6f3ed5738ffe96f5b12f9e96        refs/heads/next
cd5b2b9941d5b6f6596787ebdb03c215d91fc44d        refs/heads/origin
3efe694fd00bd90601d0a7412e6b7bdd90fc61e2        refs/heads/sunxi-v2017.03
73e3bbb832d1effe90ed13e026811633a29e8557        refs/heads/sunxi-v2017.x
f20393c5e787b3776c179d20f82a86bda124d651        refs/heads/u-boot-2009.11.y
e8ae0fa5edd152b2b29c470b88429be4cdcd2c46        refs/heads/u-boot-2013.01.y
f3363c060497515ca8b71451cb56f3ec0abacaa9        refs/heads/u-boot-2016.09.y

### list only no local fetch/remote added

git  ls-remote  -h    https://github.com/friendlyarm/u-boot.git
ee6fb217cbf3e81cd2c5f1a13f989cf59016781f        refs/heads/master
eca80cb313edd1632826a8a90f68c3b87521b02d        refs/heads/master-h3
4ef665ff6c6ff32a480478589ddf1df325c5f04d        refs/heads/nanopi-k2-v2015.01
ad46cf57242586d8959988afdaab8af00c33ddbb        refs/heads/nanopi2-v2016.01
ece0d370144fdecb6f3ed5738ffe96f5b12f9e96        refs/heads/next
cd5b2b9941d5b6f6596787ebdb03c215d91fc44d        refs/heads/origin
3efe694fd00bd90601d0a7412e6b7bdd90fc61e2        refs/heads/sunxi-v2017.03
73e3bbb832d1effe90ed13e026811633a29e8557        refs/heads/sunxi-v2017.x
f20393c5e787b3776c179d20f82a86bda124d651        refs/heads/u-boot-2009.11.y
e8ae0fa5edd152b2b29c470b88429be4cdcd2c46        refs/heads/u-boot-2013.01.y
f3363c060497515ca8b71451cb56f3ec0abacaa9        refs/heads/u-boot-2016.09.y

 

猜你喜欢

转载自blog.csdn.net/hushui/article/details/113339105
今日推荐