为什么你不能 `git pull SHA...650839#file-diff.pach`?

为什么你不能 `git pull SHA...650839#file-diff.pach`?

我想下载此差异的一部分:https://gist.github.com/sergeykish/650839#file-dvorak-de-diff。伪代码

git pull https://gist.github.com/sergeykish/650839#file-dvorak-de-diff.patch

答案1

git pull用于更新现有存储库。如果你想下载新存储库的内容,有git clone命令:

 $ git clone https://gist.github.com/sergeykish/650839
Cloning into '650839'...
remote: Counting objects: 15, done.
remote: Total 15 (delta 0), reused 0 (delta 0), pack-reused 15
Unpacking objects: 100% (15/15), done.
Checking connectivity... done.
 $ cd 650839/
 650839 (master)$ ls
dvorak-de.diff  winkeys-ua.diff
 650839 (master)$ cat dvorak-de.diff 

Raw您可以通过单击链接页面上的按钮来下载单个差异。或者从 shell 复制 url:

wget https://gist.githubusercontent.com/sergeykish/650839/raw/ce43a3b70e769b6de8ecf996298455bc0f622125/dvorak-de.diff

相关内容