
Ultimate access to all questions.
A developer has successfully configured their credentials for Databricks Repos and cloned a remote Git repository. They do not have privileges to make changes to the main branch, which is the only branch currently visible in their workspace.
Which approach allows this user to share their code updates without the risk of overwriting the work of their teammates?
A
Use Repos to checkout all changes and send the git diff log to the team.
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.
E
Use Repos to create a new branch, commit all changes, and push changes to the remote Git repository.
Explanation:
The correct answer is E because:
Creating a new branch is the standard Git workflow for developers who don't have write access to the main branch. This allows them to work independently without affecting the main codebase.
Committing all changes to the new branch ensures their work is saved locally.
Pushing changes to the remote Git repository makes their branch available to teammates for review and collaboration.
This approach avoids overwriting teammates' work because:
Why other options are incorrect:
Best Practice: In Databricks Repos, when you don't have privileges to modify the main branch, you should: