What does the command git remote -v do?
a) Lists all remote repositories with URLs
b) Verifies the connection to the remote repository
c) Deletes a remote repository
d) Displays commit history from the remote repository
Answer:
a) Lists all remote repositories with URLs
Explanation:
The git remote -v command lists all remote repositories associated with your local Git repository, along with their URLs. The -v flag stands for “verbose,” and it displays both the fetch and push URLs for each remote.
This command is useful for checking the configuration of your remotes, especially when working with multiple remotes or verifying that your repository is correctly linked to its GitHub counterpart.
It’s an essential tool for managing remote repositories in collaborative workflows.