Skip to content

Commit 966d686

Browse files
authored
Merge pull request #268 from FlutterFlow/feature/closing-branch
Restore Branch Info
2 parents 380539e + 389f7b0 commit 966d686

File tree

1 file changed

+63
-7
lines changed
  • docs/testing-deployment-publishing/branching-collaboration

1 file changed

+63
-7
lines changed

docs/testing-deployment-publishing/branching-collaboration/branching.md

Lines changed: 63 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,34 @@ You can modify files or edit the project directly from the lower panel at any ti
384384

385385
After editing, click **Save Changes** to confirm your changes. A red reset button appears if you want to undo your changes and restore the file to its initial state before you began editing.
386386

387+
For more information, check out the video below.
388+
389+
<div style={{
390+
position: 'relative',
391+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
392+
height: 0,
393+
width: '100%'}}>
394+
<iframe
395+
src="https://www.youtube.com/embed/r8BR248HR0U"
396+
title=""
397+
style={{
398+
position: 'absolute',
399+
top: 0,
400+
left: 0,
401+
width: '100%',
402+
height: '100%',
403+
colorScheme: 'light'
404+
}}
405+
frameborder="0"
406+
loading="lazy"
407+
webkitAllowFullScreen
408+
mozAllowFullScreen
409+
allowFullScreen
410+
allow="clipboard-write">
411+
</iframe>
412+
</div>
413+
<p></p>
414+
387415
### Resolve Merge Conflicts
388416
A merge conflict occurs when multiple team members make changes to the same part of the project.
389417

@@ -526,15 +554,9 @@ To configure these permissions, navigate to **Settings & Integrations > Project
526554

527555
Closing a branch is a common practice after the branch has served its purpose, typically once its changes have been merged into another branch (like the `main` or `development` branch). By regularly closing inactive or merged branches, you help maintain a clean, efficient, and well-organized project.
528556

529-
### When to Close a Branch
530-
557+
:::info[When to Close a Branch]
531558
- **After a Merge:** Once the branch’s changes have been merged into the `main` branch (or another target branch), it’s safe to close the branch. This often happens after a feature is complete or a bug is fixed.
532559
- **Unused Branch:** If a branch is no longer needed (e.g., a feature was abandoned or changes were made in another branch), it’s a good idea to close it.
533-
534-
:::warning
535-
536-
Once a branch is closed, it will no longer appear in the list of active **Branches**, meaning no further changes can be made. **This action is permanent and cannot be undone**, so ensure that all necessary work is completed or merged before closing the branch.
537-
538560
:::
539561

540562
Here’s how you can close a branch:
@@ -571,6 +593,40 @@ Here’s how you can close a branch:
571593
- **Coordinate with your team:** If you’re working in a team, ensure that no one is actively using the branch before you close it, to avoid disrupting ongoing work.
572594
:::
573595

596+
Once a branch is closed, it will no longer appear in the list of active branches. However, you can restore a closed branch within **30 days** of its closure.
597+
598+
### Restore Branch
599+
To restore a branch, open the **Branch Filter** menu and enable **Show Closed Branches**. Search for or select the branch you want to restore, and it will open in a new browser tab. Then, within the closed branch, open the **Branching Options** menu and select **Restore Branch** to reactivate it.
600+
601+
602+
<div style={{
603+
position: 'relative',
604+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
605+
height: 0,
606+
width: '100%'}}>
607+
<iframe
608+
src="https://demo.arcade.software/RQ8lrFH85EZr71sQ7VKN?embed&show_copy_link=true"
609+
title=""
610+
style={{
611+
position: 'absolute',
612+
top: 0,
613+
left: 0,
614+
width: '100%',
615+
height: '100%',
616+
colorScheme: 'light'
617+
}}
618+
frameborder="0"
619+
loading="lazy"
620+
webkitAllowFullScreen
621+
mozAllowFullScreen
622+
allowFullScreen
623+
allow="clipboard-write">
624+
</iframe>
625+
</div>
626+
<p></p>
627+
628+
629+
574630
## FAQs
575631
<details>
576632
<summary>

0 commit comments

Comments
 (0)