syntax error pulling git clone into python anywhere

2.8k views Asked by At

I am trying to pull a clone into pythonanywhere.

I run:

git clone https://github.com/<your-github-username>/my-first-blog.git

I get the following syntax error:

 File < stdin>, line 1
    git clone https://github.com/yavorcik/my-first-blog.git
            ^
SyntaxError: invalid syntax

Not sure what I am doing wrong here.

1

There are 1 answers

0
Vampire On BEST ANSWER

You are issuing the command in one of the Python consoles, while you should issue it in a Bash console, thus the error message that this is not valid Python code.