Skip to content

Commit 4635eba

Browse files
committed
Changes to v1 toc to move git integration
1 parent 68bf008 commit 4635eba

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

articles/machine-learning/concept-train-model-git-integration.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,15 @@ The logged information contains text similar to the following JSON:
179179
}
180180
```
181181
182+
### Python SDK
183+
184+
After submitting a training run, a [Run](/python/api/azureml-core/azureml.core.run%28class%29) object is returned. The `properties` attribute of this object contains the logged git information. For example, the following code retrieves the commit hash:
185+
186+
[!INCLUDE [sdk v1](../../includes/machine-learning-sdk-v1.md)]
187+
188+
```python
189+
run.properties['azureml.git.commit']
190+
```
182191
183192
## Next steps
184193

articles/machine-learning/toc.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,6 @@
344344
- name: Connect to compute instance VS Code
345345
displayName: Visual Studio Code, VSCode, debug, bugs
346346
href: how-to-set-up-vs-code-remote.md
347-
- name: Git integration
348-
displayName: github gitlab
349-
href: concept-train-model-git-integration.md
350347
- name: Manage environments with the CLI (v2)
351348
displayName: environment
352349
href: how-to-manage-environments-v2.md

articles/machine-learning/v1/toc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
- name: Manage resources VS Code
4646
displayName: vscode,resources
4747
href: ../how-to-manage-resources-vscode.md
48+
- name: Git integration
49+
displayName: github gitlab
50+
href: concept-train-model-git-integration.md
4851
- name: Tutorials (v1)
4952
expanded: true
5053
items:

0 commit comments

Comments
 (0)