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: docs/testing-deployment-publishing/branching-collaboration/branching.md
+50-11Lines changed: 50 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -256,7 +256,7 @@ This option is currently in **beta**. In addition to fixing any issues, here’s
256
256
257
257
When performing a Git merge in FlutterFlow, you’ll see a screen with multiple panels and info sections. Here are the details of it.
258
258
259
-
[image]
259
+

260
260
261
261
**Top Panel**
262
262
@@ -271,19 +271,19 @@ When performing a Git merge in FlutterFlow, you’ll see a screen with multiple
271
271
-**Fix Errors After the Merge**: If you prefer, you can complete the merge first and address the errors later. For example, finish the merge process as it is. After merging, go back to the project and resolve any issues.
272
272
-**Cancel**: Abandons the merge process and discards any conflict resolutions you’ve already applied during this merge session.
273
273
-**Merge**: Finalizes the merge once all merge conflicts and YAML validation errors are cleared. Project errors can remain if you choose to resolve them later.
274
-
-**Bulk Accept Changes**: Accessible via the arrow next to “Merge,” this option lets you accept all changes from one branch at once—handy if you already know which branch’s changes take precedence.
274
+
-**Bulk Accept Changes**: Accessible via the **arrow** next to **Merge** button. this option lets you accept all changes from one branch at once—handy if you already know which branch’s changes take precedence.
275
275
276
-
**Left-Hand Side Panel**
276
+
**Left Panel**
277
277
278
278
The left-hand side panel displays all the project configuration YAML files, which are crucial for managing your project’s settings and structure.
279
279
280
280
YAML (Yet Another Markup Language) files use a simple, human-readable format to define configuration data. They are particularly useful during a merge because they allow you to directly review, understand, and resolve any changes or conflicts in your project’s configuration.
281
281
282
282
-**Filter Files:** You can use filters to narrow down the list of YAML files based on specific criteria:
283
283
284
-
-**All Files:** Shows every YAML file in the project.
285
-
-**Files with Changes:** Displays only files where a change has been made on either branch.
286
-
-**Files with Conflicts:** Shows only files that have merge conflicts, where the changes in one branch directly contradict the changes in the other.
284
+
-**All Files (Unchanged Files)**: Shows every YAML file in the project.
285
+
-**Files with Changes**: Displays only files where a change has been made on either branch.
286
+
-**Files with Conflicts**: Shows only files that have merge conflicts, where the changes in one branch directly contradict the changes in the other.
287
287
288
288
:::info
289
289
- A **change** refers to any update, addition, or deletion made in one of the branches. For example, modifying a field name or changing the properties of a widget.
@@ -294,8 +294,21 @@ YAML (Yet Another Markup Language) files use a simple, human-readable format to
294
294
295
295
Clicking on a file in the panel opens it in the editor, allowing you to view, edit, and resolve issues directly.
296
296
297
+
**Right Upper Panel**
297
298
298
-
**Lower Panel**
299
+
The Upper Right Panel offers a quick, side-by-side comparison of file changes from both branches, along with easy one-click accept buttons and previews. This panel makes it simple to decide which changes to keep or discard.
300
+
301
+
:::info
302
+
We highlight edits using green and red (Git) color coding:
303
+
304
+
-**Green** indicates lines or values **added** (or unique) in one branch.
305
+
-**Red** indicates lines or values **removed** (or replaced) by that branch.
306
+
:::
307
+
308
+
-**Accept Change Button**: Quickly accept changes from one branch if you know it has the correct edits.
309
+
-**Eye (Preview) Icon**: Open or view the file in the FlutterFlow builder to see how the changes look. For example, you can preview a theme color change visually rather than just reading its name in YAML.
310
+
311
+
**Right Lower Panel**
299
312
300
313
The **Lower Panel** displays the final merged files after Git applies its merging logic. It gives you a chance to manually inspect and edit the outcome—whether or not a conflict occurs.
301
314
@@ -307,7 +320,7 @@ Git attempts to combine changes from both branches automatically. If Git can’t
307
320
308
321
:::info
309
322
310
-
Git may label branches as `HEAD` or a commit reference, which can differ from the friendly branch names you given.
323
+
During merge conflict, Git may label branches as `HEAD` or a commit reference, which can differ from the friendly branch names you given.
311
324
312
325
-**HEAD**: Refers to the current branch (or commit) you’re on—essentially your “main viewpoint” in Git.
313
326
-**Other Branch**: Denotes the second branch (or commit) you’re merging in, which might be labeled using a commit hash.
@@ -316,7 +329,7 @@ Git may label branches as `HEAD` or a commit reference, which can differ from th
316
329
317
330
You can modify files in the lower panel at any time—even if there’s no conflict. You could also choose which branch’s changes to keep here. You might decide to keep certain lines from `HEAD` (your current branch) or from the other branch or combine them manually.
318
331
319
-
After editing, click **Save** to confirm your changes. A red reset button appears if you want to undo your edits and restore the file to its initial state before you began editing.
332
+
After editing, click **Save Changes** to confirm your changes. A red reset button appears if you want to undo your edits and restore the file to its initial state before you began editing.
320
333
321
334
### Resolve Merge Conflicts
322
335
A merge conflict occurs when multiple team members make changes to the same part of the project.
@@ -373,16 +386,42 @@ When you initiate a merge using Git, the system attempts to automatically reconc
373
386
You can review each file with merge conflicts and choose to:
Finally, complete the merge by clicking **Merge**.
380
420
:::tip
381
421
- If you merged a child branch into its parent and are confident everything looks correct, you may delete the child branch.
382
422
- If you find any issues after the merge, you can revert the branch to an earlier commit. However, be aware that any changes made after that commit will be lost.
383
423
:::
384
424
385
-
[Arcade]
386
425
387
426
### Resolve Conflicts Manually
388
427
If you choose to resolve manually, you can directly make changes in the **Accepted Changes** section. Note that if you cancel a manual resolution, you can choose to either keep or discard the changes you have made since starting the manual resolution.
0 commit comments