In Git, how would you manage multiple remote repositories for the same local repository?
- Use git branch
- git remote add
- git merge
- git push
The correct option is B. git remote add is used to manage multiple remote repositories. It allows you to associate a remote name with a URL and then refer to that remote with the given name. This is useful for fetching and pushing changes to different remote repositories.
Loading...
Related Quiz
- Which Git command is used to undo the last commit while keeping the changes in the working directory?
- How does Git enable better handling of changes and revisions in large-scale projects?
- To save changes in a new stash, you would use git stash ______.
- To include a repository as a Submodule in your project, use the command git __________.
- How does Git enhance collaboration in a Continuous Integration/Continuous Deployment (CI/CD) pipeline?