You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-management/api-management-configuration-repository-git.md
+16-13Lines changed: 16 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: dlepow
6
6
7
7
ms.service: api-management
8
8
ms.topic: how-to
9
-
ms.date: 07/28/2022
9
+
ms.date: 08/05/2022
10
10
ms.author: danlep
11
11
---
12
12
# How to save and configure your API Management service configuration using Git
@@ -127,20 +127,23 @@ Once the repository is cloned, you can view and work with it in your local file
127
127
128
128
## Update your local repository with the most current service instance configuration
129
129
130
-
If you make changes to your API Management service instance in the Azure portal or using other Azure tools, you must save these changes to the repository before you can update your local repository with the latest changes. To do this:
130
+
If you make changes to your API Management service instance in the Azure portal or using other Azure tools, you must save these changes to the repository before you can update your local repository with the latest changes.
131
131
132
-
1. In the Azure portal, select **Save to repository** on the **Repository** tab for your API Management instance.
133
-
1. In the folder for your local repository, issue the following command.
132
+
To save changes using the Azure portal, select **Save to repository** on the **Repository** tab for your API Management instance.
134
133
135
-
```
136
-
git pull
137
-
```
134
+
Then, to update your local repository:
138
135
139
-
Before running `git pull` ensure that you are in the folder for your local repository. If you've just completed the `git clone` command, then you must change the directory to your repo by running a command like the following.
136
+
1. Ensure that you are in the folder for your local repository. If you've just completed the `git clone` command, then you must change the directory to your repo by running a command like the following.
140
137
141
-
```
142
-
cd {name}.scm.azure-api.net/
143
-
```
138
+
```
139
+
cd {name}.scm.azure-api.net/
140
+
```
141
+
142
+
1. In the folder for your local repository, issue the following command.
143
+
144
+
```
145
+
git pull
146
+
```
144
147
145
148
## Push changes from your local repo to the server repo
146
149
To push changes from your local repository to the server repository, you must commit your changes and then push them to the server repository. To commit your changes, open your Git command tool, switch to the directory of your local repository, and issue the following commands.
@@ -175,7 +178,7 @@ The files and folders in the local Git repository contain the configuration info
175
178
| Item | Description |
176
179
| --- | --- |
177
180
| root api-management folder |Contains top-level configuration for the service instance |
178
-
| apiReleases folder |Contains the configuration for the API revisions in the service instance |
181
+
| apiReleases folder |Contains the configuration for the API releases in the service instance |
179
182
| apis folder |Contains the configuration for the APIs in the service instance |
180
183
| apiVersionSets folder |Contains the configuration for the API version sets in the service instance |
181
184
| backends folder |Contains the configuration for the backend resources in the service instance |
@@ -286,7 +289,7 @@ The `portalStyles` folder contains configuration and style sheets for customizin
286
289
*`portalStyles\<style name>.css` - Each `<style name>.css` file contains styles for the developer portal (`Preview.css` and `Production.css` by default).
287
290
288
291
### portalTemplates folder
289
-
The `portalTemplates` folder contains templates for customizing the deprecated developer of the service instance.
292
+
The `portalTemplates` folder contains templates for customizing the deprecated developer portal of the service instance.
290
293
291
294
*`portalTemplates\<template name>\configuration.json` - Configuration of the template.
292
295
*`portalTemplates\<template name>\<page name>.html` - Original and modified HTML pages of the template.
0 commit comments