git log --oneline
上面的命令給了我,隨後的結果:有沒有什麼辦法可以用git log來顯示遠程引用?
5485b34 Modify: something
ccaf2c4 Modify: another thing
85a87e8 Bug Fix: the other thing
但因爲我使用的是格里特通常格里特有它的變化號碼作爲裁判/修改/ ...格式,我想收集名單成幀如下:
refs/changes/85/104085/9 Modify: something
refs/changes/33/104033/9 Modify: another thing
refs/changes/83/104183/2 Bug Fix: the other thing
我知道有一種方法,通過使用「GIT中LS-遠程」,取得提交ID和遠程引用之間的映射。通過使用「git ls-remote」,我可以創建一個腳本來獲得上述結果。但是有沒有更好更簡單的方法來獲得上述結果?
非常感謝。這是我真正想要的。 –