Forums

Github Clone puts files in wrong direcotry

Newbie: I created a small Flask application locally using pycharm, and then put it into GitHub. I now want to pull it from GitHub into PythonAnywhere. When I opened the bash console and did the git clone command it cloned fine, but it put it into a subfolder within the /mysite/ folder that python anywhere created. so now I have something like this: /mysite flask_app.py /project_name_from_git_repo ... all of my files

How do I make it so git clones into the existing directory instead of a new subdirectory?

Confused at best :-)

Paul

You can provide a destination directory argument to the command, like git clone repo where/to/clone/it.