Junior — Middle
What is the role of the git remote command in managing remote repositories?
sobes.tech AI
Answer from AI
The git remote command is used to manage remote repositories in Git. It allows:
- Viewing the list of remote repositories associated with the local repository.
- Adding new remote repositories.
- Modifying or removing existing remote repositories.
For example, to add a remote repository, use:
git remote add origin https://github.com/user/repo.git
To view the list of remote repositories:
git remote -v
Thus, git remote helps manage the connection between the local repository and remote sources of code.