• 6 hours
  • Easy

Free online content available in this course.

course.header.alt.is_video

course.header.alt.is_certifying

Got it!

Last updated on 6/7/23

Use Basic Git Commands

Evaluated skills

  • Use basic Git commands
  • Question 1

    What are the three main local areas in Git?

    Careful, there are several correct answers.
    • Working directory

    • Cloud

    • Repository

    • Stage

  • Question 2

    You’ve created your remote repository in GitHub, which we’ll call MyRemoteRepository, and you now want to link it to your local repository in Git. REP is the short name used to refer to the repository. 

    Which command should you type?

     

    • git remote REP https://github.com/xxxxxx/myRemoteRepository
    • git remote REP add
      https://github.com/xxxxxx/myRemoteRepository
    • git remote add REP 
      https://github.com/xxxxxx/myRemoteRepository
    • git add REP 
      https://github.com/xxxxxx/myRemoteRepository
  • Question 3

    Now that your remote repository is linked to your local repository, you need to duplicate its content to the local repository. To do this, you should use:

    • git clone REP 
      https://github.com/xxxxxx/myRemoteRepository
    • git duplicate 
      https://github.com/xxxxxx/myRemoteRepository
    • git clone 
      https://github.com/xxxxxx/myRemoteRepository
    • git duplicate REP
Ever considered an OpenClassrooms diploma?
  • Up to 100% of your training program funded
  • Flexible start date
  • Career-focused projects
  • Individual mentoring
Find the training program and funding option that suits you best