1

I have a problem in git clone ssh, when I execute make init-dev

if [ ! -d "goodcommerce-hydra" ] ; then git clone "[email protected]:/goodcommerce/goodcommerce-hydra.git" "goodcommerce-hydra"; cd goodcommerce-hydra && git checkout "master"; fi
Cloning into 'goodcommerce-hydra'...
ssh: Could not resolve hostname gitlab.com;c: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

but when I execute

git clone "[email protected]:/goodcommerce/goodcommerce-hydra.git" "goodcommerce-hydra"

it works well.

maybe is de ;c in ssh: Could not resolve hostname gitlab.com;c: ?

I'm using WINDOWS 10 pro

1 Answer 1

2

I think the ";" is wrong here

This should do; though "git check" doesn't seems to be a correct command.

if [ ! -d "goodcommerce-hydra"" ]; then 
git clone "[email protected]:/goodcommerce/goodcommerce-hydra.git" "goodcommerce-hydra"" && cd goodcommerce-hydra && git check 
fi
Sign up to request clarification or add additional context in comments.

1 Comment

excuse me, copy wrong, I already edited the question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.