remoteHost=git@github.com
remoteUser=Spiderworks007
remoteDir=~/repositories/exercism-haskell.git
remoteRepos=$(ssh -l $remoteUser $remoteHost "ls $remoteDir")
这是我得到的错误。我是bash脚本和git repo的新手。
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.
答案 0 :(得分:0)
你不能在github.com上#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
int buffer = 0;
pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
void* download(void *arg){
printf("downloading.....\n");
pthread_mutex_lock(&lock);
sleep(3);
buffer = 10;
printf("complete....\n");
pthread_cond_signal(&cond);
pthread_mutex_unlock(&lock);
return NULL;
}
void* play(void *arg){
pthread_mutex_lock(&lock);
pthread_cond_wait(&cond, &lock);
printf("start play!\n");
--buffer;
pthread_mutex_unlock(&lock);
return NULL;
}
int main(){
pthread_t tid1, tid2;
pthread_create(&tid1, NULL, play, NULL);
pthread_create(&tid2, NULL, download, NULL);
pthread_join(tid1, NULL);
pthread_join(tid2, NULL);
}
(登录),这意味着你无法像你一样登录github.com。
您可以使用GitHub仓库的SSH URL来克隆它:
ssh -l
您可以调整脚本以执行git clone git@github.com:Spiderworks007/exercism-haskell.git
命令。