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
* First draft to add reconnect a repo in project settings documentation
* Finish documenting reconnect a repo
* Update screenshot
* Add caution callout
Copy file name to clipboardExpand all lines: docusaurus/docs/cloud/projects/settings.md
+29-5Lines changed: 29 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,16 +31,40 @@ The *General* tab enables you to check and update the following options for the
31
31
}}
32
32
/>
33
33
34
-
### Modifying git repository branch
34
+
### Modifying git repository & branch
35
35
36
-
The GitHub or Gitlab repository branch and base directory for a Strapi Cloud project are by default chosen at the creation of the project (see [Creating a project](/cloud/getting-started/deployment)). Both can afterwards be edited via the project's settings.
36
+
The GitHub or Gitlab repository, branch and base directory for a Strapi Cloud project are by default chosen at the creation of the project (see [Creating a project](/cloud/getting-started/deployment)). After the project's creation, via the project's settings, it is possible to:
37
37
38
-
1. In the *Connected git repository* section of the *General* tab, click on the **Edit** button.
39
-
2. In the *Edit Git settings* dialog, edit the available options of your choice:
38
+
- update the project's repository or switch to another git provider (see [Updating repository](#updating-repository)),
39
+
- edit the project's branch, base directory and deploy on push setting (see [Editing branch](#editing-branch)).
40
+
41
+
:::caution
42
+
Updating the git repository could result in the loss of the project and its data, for instance if the wrong repository is selected or if the data schema between the old and new repository doesn't match.
43
+
:::
44
+
45
+
#### Updating repository
46
+
47
+
1. In the *Connected git repository* section of the *General* tab, click on the **Update repository** button.
48
+
2. (optional) If you wish to not only update the repository but switch to another git provider, click on the **Switch to GitHub/GitLab** button at the bottom of the *Update repository* dialog. You will be redirected to the chosen git provider's authorization settings before getting back to the *Update repository dialog*.
49
+
3. In the *Update repository* dialog, fill in the 3 available settings:
|Selected branch | Choose a branch from the drop-down list. |
67
+
|Git branch| Choose a branch from the drop-down list. |
44
68
| Base directory | Write the path of the base directory in the textbox. |
45
69
| Deploy the project on every commit pushed to this branch | Tick the box to automatically trigger a new deployment whenever a new commit is pushed to the selected branch. Untick it to disable the option. |
0 commit comments