1

我正在尝试从我的私人 github 存储库中提取单个文件,但遇到了困难。

具体来说,这有效:

git clone git@github.com:userName/repositoryName.git

但我似乎找不到任何有关如何克隆/获取单个文件的文档。我尝试了一些变化:

git clone git@github.com/userName/repositoryName/blob/master/example.py
git clone git@github.com/userName/repositroyName.git/example.py

每次提示我输入密码时:

Cloning into 'example.py'...
Enter passphrase for key '/home/root/.ssh/id_rsa':

除了输入我的有效密码外,我得到:

ERROR: Repositroy not found.
fatal: The remote end hung up unexpectedly

目前不知道该怎么做,我正在运行 Angstrom Linux 3.2.28

4

0 回答 0