我来帮忙解释一下发生了什么吧。
https://github.com/agbell/agbell.github.io/tree/hakyll 这个 link 里面
1.「
https://github.com/agbell/agbell.github.io 」这个部分是 repo 的实际地址
2. tree 代表是是个 folder ,如果是实际代码一般是 blob 表示是二进制文件。 比如 「
https://github.com/agbell/agbell.github.io/blob/master/about.html 」
3. hakyll 是这个库的分支。
所以你直接 clone 整个完整 url 是不行的。
@
owt5008137 是帮你 clone 了这个 repo 然后切换到了对应分支。
「 git clone -b hakyll
https://github.com/agbell/agbell.github.io 」
你也可以分两步走:
1. clone 整个库: git clone
https://github.com/agbell/agbell.github.io2. 切换到对应分支 git check out hakyll
另外如果你只想要代码,不想在 git 上花时间的话你可以 直接 download , 这样就直接 download 该 url 对应的分支的代码啦。