Clone a repository off of the remote server

Learning Challenge

Git Recipes

Question

How do I clone a repository to my git account?

What I’ve tried

git clone (personal email):(username)/ repo (directory)

Screenshots

Good morning, and welcome to the community!

Getting started with Git can feel like a big learning curve.

From your screenshot, it looks like you have too many arguments in your git clone command.

For reference, you can check out the Git Recipes Lesson in the prepwork. Here is a a screenshot from that lesson:

The recipe can be a little misleading, because git@example.com:user/repo does not actually exist!

In your command, if a.brown.aoit@gmail.com:Ashley-B1/repo is an existing remote repository, the issue is likely caused by having an extra space between Ashley-B1/ and repo.

If you want to try cloning a real repository, feel free to try this one. This is just one of my old practice repos, which is public.
git clone git@github.com:jessesbyers/data-art.git practice-directory-name

You can replace practice-directory-name with whatever you would like your directory to be called.

I would recommend deleting the directory after you test it successfully, just so you don’t have extra files and folders on your computer!

Let us know how it goes, and if you are able to successfully clone a repo.
Jesse

1 Like

Thank you! I will try this one.

1 Like