Skill 1.3.5

Manage source control for machine learning projects by using Git

Key Concepts

The repository holds training and scoring code, component and pipeline YAML, environment definitions, Bicep files, workflow files, tests and prompts. Large data, model binaries, notebook outputs and secrets stay out, through .gitignore and by referencing versioned data and model assets instead. Clearing notebook outputs before committing keeps diffs readable and avoids leaking data.

A branching strategy, such as short-lived feature branches merged to main through pull requests, lets workflows run tests and validation before a change is accepted. When a job is submitted from a Git working copy, Azure Machine Learning records the repository URL, branch and commit with the job, so a registered model can be traced to the exact code that trained it.