Welcome to the Linux Foundation Forum!

Lab 3.2- Git clone command

Options

Hi,

After performig, SSH compute node, sudo apt-get update and sudo apt-get install git vim command,

I am getting this error message when trying to issue the git cone command to compute-node.

root@compute-node:~# git clone https:://git.openstack.org/openstack-dev/devstack -

Cloning into '-'...

fatal: unable to access '//git.openstack.org/openstack-dev/devstack/': <url> malform

ed

root@compute-node:~# b stable/newton

b: command not found

root@compute-node:~# git clone https:://git.openstack.org/openstack-dev/devstack -

Cloning into '-'...

fatal: unable to access '//git.openstack.org/openstack-dev/devstack/': <url> malform

ed.

 

Any suggestions, what is the issue and how can be resolved?

Thanks,

Comments

  • serewicz
    serewicz Posts: 1,000
    edited May 2017
    Options

    Hello,

    The output from the shell is indicating that there is a line break from the copy and paste. As a result the full URL is not being accepted in the first command, and the rest of the URL is being seen as a second command, which throws the "b command not found"  The git clone command should be on one line:


    git clone https://git.openstack.org/openstack-dev/devstack -b stable/newton

    Regards,

  • Ssiddiqu
    Ssiddiqu Posts: 7
    Options

    Thanks, this worked.

Categories

Upcoming Training