我需要libvlc 2.0.6,但是当我克隆下面的链接并编译时,我得到了libvlc-3.0.0-2.1.2.arar。libvlc git clone 2.0.6
克隆git时可以针对特定版本吗?
混帐网址:https://code.videolan.org/videolan/vlc-android.git
我需要libvlc 2.0.6,但是当我克隆下面的链接并编译时,我得到了libvlc-3.0.0-2.1.2.arar。libvlc git clone 2.0.6
克隆git时可以针对特定版本吗?
混帐网址:https://code.videolan.org/videolan/vlc-android.git
的正常的方式来做事是克隆整个存储库(即让你的历史的全部 - 所有版本,所有标签等),然后检查所需的特定版本算账:
git clone https://code.videolan.org/videolan/vlc-android.git
cd vlc-android
git checkout 2.0.6
你也可以告诉克隆检查出一个特定的版本,因为它的工作原理;注意,这还是历史上复制所有从服务器下来:
git clone -b 2.0.6 https://code.videolan.org/videolan/vlc-android.git
您还可以创建一个浅克隆,这不抄下来的历史的休息,只得到您需要的特定版本:
git clone -b 2.0.6 --depth 2 https://code.videolan.org/videolan/vlc-android.git
“深度2”将标记为2.0.6的提交中的更改与先前提交的更改分开;如果这不重要,可以使用“深度1”。
你就是我的是为制作标签。只要看看你想要的那个。我看到有一个你想要的版本。
git checkout 2.0.6
非常感谢!你碰巧知道如何用Grgit.clone()嵌入下列其中之一? – RonTLV
从未听说过“Grgit”。 –