FAQ: Git Teamwork - git clone

This community-built FAQ covers the “git clone” exercise from the lesson “Git Teamwork”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Learn Git

FAQs on the exercise git clone

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

I can’t find the remote_location in this exercise; Am I missing something? please help me/

3 Likes

Hey @mo3npk!
I’m not sure what you are asking… You are supposed to clone the science-quizzes remote into the my-quizzes directory. You clone remotes using git clone remote_location clone_name. In this case, science-quizzes is the remote_location and my-quizzes is the clone_name

4 Likes

image

Any idea what i’m doing wrong?

1 Like

Hello,
What you entered is correct something should be changed.

git clone /home/ccuser/workspace/curriculum/science-quizzes my-quizzes

You can find the path by entering pwd command.

6 Likes

If we have the concept of git clone then why do we need branching?

1 Like

-’‘You can find the path by entering pwd command.’’

Thank you! Great!

1 Like

they are two completely different functions.

Cloning makes a clone of the whole project and saves it to your local machine

Branching changes the project, already on your machine, to work on some other feature that hasn’t been implemented into the main project yet

3 Likes

thank you so much I got it

$ git init
Initialized empty Git repository in /home/ccuser/workspace/curriculum/.git/
$ pwd
/home/ccuser/workspace/curriculum
$ git clone /home/ccuser/workspace/curriculum/science-quizzes my-quizzes
Cloning into ‘my-quizzes’…
done.

Thanks !

2 Likes

I was stuck here for ages until I read this and realised that you needed it initialise the respository first lol. Thank you for this thread!