Bash 克隆 git 存储库的脚本
Bash script that clone git repo
remoteHost=git@github.com
remoteUser=Spiderworks007
remoteDir=~/repositories/exercism-haskell.git
remoteRepos=$(ssh -l $remoteUser $remoteHost "ls $remoteDir")
这是我遇到的错误。我是 bash 脚本和 git 回购的新手。
You appear to be using ssh to clone a git:// URL.
Make sure your core.gitProxy config option and the
GIT_PROXY_COMMAND environment variable are NOT set.
您无法在 github.com 上 ssh -l
(登录),这意味着您无法像您一样登录 github.com。
您可以使用 GitHub 存储库的 SSH URL 克隆它:
git clone git@github.com:Spiderworks007/exercism-haskell.git
您可以调整您的脚本来执行该 git clone
命令。
remoteHost=git@github.com
remoteUser=Spiderworks007
remoteDir=~/repositories/exercism-haskell.git
remoteRepos=$(ssh -l $remoteUser $remoteHost "ls $remoteDir")
这是我遇到的错误。我是 bash 脚本和 git 回购的新手。
You appear to be using ssh to clone a git:// URL.
Make sure your core.gitProxy config option and the
GIT_PROXY_COMMAND environment variable are NOT set.
您无法在 github.com 上 ssh -l
(登录),这意味着您无法像您一样登录 github.com。
您可以使用 GitHub 存储库的 SSH URL 克隆它:
git clone git@github.com:Spiderworks007/exercism-haskell.git
您可以调整您的脚本来执行该 git clone
命令。