Git

為什麼你不能git pull SHA...650839#file-diff.pach

  • June 19, 2016

我想下載這個差異的一部分:https ://gist.github.com/sergeykish/650839#file-dvorak-de-diff 。虛擬碼

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

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

引用自:https://unix.stackexchange.com/questions/290765