
Answer-first summary for fast verification
Answer: Use Repos to create a new branch, commit all changes, and push changes to the remote Git repository.
The correct approach for the developer to share their code updates without the risk of overwriting the work of their teammates is to create a new branch in Repos. This allows them to commit all changes and push these changes to the remote Git repository without affecting the main branch. This method ensures that their work is isolated and can be reviewed before any potential merge into the main branch. Forking the repository (Option B) is not directly supported by Databricks Repos and is more of a Git provider feature. Option C is incorrect because pulling changes from the remote repository does not automatically create a new branch for committing changes. Option D is incorrect as it suggests merging differences directly, which would require privileges on the main branch.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A developer has properly set up their Databricks Repos credentials and cloned a remote Git repository. They lack permissions to modify the main branch, which is currently the sole branch visible in their workspace.
What method enables this user to contribute their code changes while preventing potential conflicts with their colleagues' work?
A
Use Repos to create a new branch, commit all changes, and push changes to the remote Git repository.
B
Use Repos to create a fork of the remote repository, commit all changes, and make a pull request on the source repository.
C
Use Repos to pull changes from the remote Git repository; commit and push changes to a branch that appeared as changes were pulled.
D
Use Repos to merge all differences and make a pull request back to the remote repository.