Forums

Clone repository stored on pythonanywhere

I created a git repository on my pythonanywhere server a long time ago. I have a new computer now, and would like to clone the repository to this new computer (the old computer was the one that created the repository, so never had this problem). The question, I guess, is how do I clone the repository that is stored in my pythonanywhere server? It lives in ~/bare-repos/, but I'm not sure how to actually access it outside of the server. Is there a public address that I can clone through?

You need to use address like myusername@ssh.pythonanywhere.com:/home/myusername/directory/something.git

Thanks! This is exactly what I needed.

Glad to hear that it works for you!

Hi, I also want to clone my pythonanywhere repository.

I'm trying: git clone {{my user name}}@https.pythonanywhere.com:/home/{{my user name}}/{{my repo name}}

Then I get the following:

Cloning into '{{name of my repository}}'... {{my user name}}@https.pythonanywhere.com's password:

I would type in my password but then get: Permission denied, please try again.

I've doublechecked and am definitely using the right password. Is this a limitation with my free account? If so, could you share the syntax for cloining a repo via https?

If github is rejecting your password, you will need to contact them about that.