nerdexam
Microsoft

GH-900 · Question #107

What is a Git remote?

The correct answer is B. a reference to a repository that is hosted in a separate location. A Git remote is a named reference (alias) to a repository hosted at a separate location-typically on a server like GitHub, GitLab, or Bitbucket. The most common remote is called 'origin' and points to the repository you cloned from. Remotes allow you to push your local commits…

Introduction to Git and GitHub

Question

What is a Git remote?

Options

  • Aa local copy of the repository stored on a user's machine
  • Ba reference to a repository that is hosted in a separate location
  • Ca branch in the repository where changes are pushed for collaboration
  • Da separate repository for testing before pushing changes to the main repository

How the community answered

(25 responses)
  • B
    88% (22)
  • C
    8% (2)
  • D
    4% (1)

Explanation

A Git remote is a named reference (alias) to a repository hosted at a separate location-typically on a server like GitHub, GitLab, or Bitbucket. The most common remote is called 'origin' and points to the repository you cloned from. Remotes allow you to push your local commits to a shared repository and pull changes from it. A remote is not itself a branch or a copy of the repo on your machine; it is simply a pointer to a URL.

Topics

#Git remotes#Repository management#Git concepts#Distributed Version Control

Community Discussion

No community discussion yet for this question.

Full GH-900 Practice