我试图使用shell .sh克隆带有特定标记的github项目,但没有成功。
在这种情况下,我想下载这个版本:https://github.com/litecoin-project/litecoin/releases/tag/v0.8.0
有趣的部分是litecoin路径不存在,如果只使用:git clone -b 0.8 https://github.com/litecoin-project/litecoin.git
我可以克隆这个项目。
我在我的.sh中使用了这一行
git clone https://github.com/litecoin-project/litecoin.git
git tag -l
git checkout 0.8
# git clone --branch 0.8 git@github.com:litecoin-project/litecoin.git
# git clone -b 0.8 https://github.com/litecoin-project/litecoin.git错误:我的pc中没有litecoin文件夹,但一直显示如下:
fatal: destination path 'litecoin' already exists and is not an empty directory.
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git发布于 2018-03-26 16:42:01
第一误差
fatal: destination path 'litecoin' already exists and is not an empty directory 如果您尝试克隆而不删除已经存在的文件夹,则会发生。
错误
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git是因为你需要先把cd放进litecoin文件夹。
git clone https://github.com/litecoin-project/litecoin
cd litecoin
git tag -l
git checkout 0.8对我来说很好
https://stackoverflow.com/questions/49496363
复制相似问题