Search code examples
pythongitgithubclone

git clone command line is not working for a repo on github


I am following the instructions of a code on Github. the first step is saying Open a terminal, switch to the ANNA-PALM source code folder. Then there is this command line

git clone https://github.com/imodpasteur/ANNA-PALM
cd ANNA-PALM

When I ran it on spyder (in anaconda) I get this error

File "<ipython-input-24-b04c1bbc8ffc>", line 1
  git clone https://github.com/imodpasteur/ANNA-PALM
        ^
SyntaxError: invalid syntax

Solution

  • this is supposed to be run in terminal/cmd not python shell

    1. open file explorer in the directory that you wish to add the cloned repository

    2. enter cmd into directory bar

    3. in cmd enter:

      git clone https://github.com/imodpasteur/ANNA-PALM
      cd ANNA-PALM