Software Engineering · Question 4 · Easy

Which git command creates a local copy of an existing remote repository?

  1. git init
  2. git pull
  3. git commit
  4. git clone
Answer and explanation

Answer: D. git clone

Explanation: git clone <url> copies the remote repository, including its history, into a new local directory. git init creates a new empty repository.

Previous: In Scrum, who is responsible for maintaining and prioritising the Product… · Next: Black-box testing designs test cases based on:

Practise software engineering

Try a fresh set of software engineering questions with an explanation after every answer, free and without signing up: Software Engineering practice. Or sit a full placement mock test.

More software engineering questions

More technical & programming practice

Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java · Python · Data Structures · Algorithms

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge