nerdexam
Cisco

200-901 · Question #6

What is the outcome of executing this command? git clone ssh:/[email protected]/path/to/my-project.git

The correct answer is A. Creates a local copy of a repository called "my-project". git clone downloads a full copy of a remote repository to your local machine. The repository name is derived from the last segment of the URL path - in this case my-project - so a local directory named my-project is created containing the full repository history and working…

Software Development and Design

Question

What is the outcome of executing this command? git clone ssh:/[email protected]/path/to/my-project.git

Options

  • ACreates a local copy of a repository called "my-project"
  • BCreates a copy of a branch called "my-project"
  • CInitiates a new Git repository called "my-project"
  • DCreates a new branch called "my-project"

How the community answered

(60 responses)
  • A
    93% (56)
  • B
    2% (1)
  • C
    2% (1)
  • D
    3% (2)

Explanation

git clone downloads a full copy of a remote repository to your local machine. The repository name is derived from the last segment of the URL path - in this case my-project - so a local directory named my-project is created containing the full repository history and working tree. It does not create a new repository (git init does that), it does not create a branch (git branch or git checkout -b does that), and it clones the entire repository - not just a single branch (though only the default branch is checked out initially).

Topics

#Git#Version Control#git clone command#Repository Management

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice