2013-11-26 35 views

回答

2

據我所知,沒有一個命令可以完成你所要求的功能。

git show-ref --tags -d    // lists local tags, including dereferences 
git ls-remote --tags <repository> // lists tags on remote 
git checkout <tag>     // switch to branch at tag 

我相信附註的標籤對應於具有^{}附加(它們被解除引用)裁判,這可以幫助你編造一個diff腳本列出所有新的註釋標籤。

這個question的討論可能也是你感興趣的。

0

當你做一個獲取,.git/FETCH_HEAD列出每個已檢索參考,所以git fetchremote並通過運行該文件中列出的標記。

相關問題