What is a Git remote?
a) A repository hosted on a server
b) A local branch
c) A tag
d) A commit
Answer:
a) A repository hosted on a server
Explanation:
A Git remote is a reference to a repository hosted on a server, such as GitHub, GitLab, or a private server. It allows you to collaborate with others by pushing and pulling changes between your local repository and the remote one.
For example, origin is a common name for the default remote repository when you clone a repository. You can add additional remotes using git remote add.
Understanding remotes is key to collaborating with other developers and managing distributed workflows in Git.