Skip to content

Commit 55d85c9

Browse files
committed
Restore branch info
1 parent 380539e commit 55d85c9

File tree

1 file changed

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

1 file changed

+35
-7
lines changed

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

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -526,15 +526,9 @@ To configure these permissions, navigate to **Settings & Integrations > Project
526526

527527
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.
528528

529-
### When to Close a Branch
530-
529+
:::info[When to Close a Branch]
531530
- **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.
532531
- **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-
538532
:::
539533

540534
Here’s how you can close a branch:
@@ -571,6 +565,40 @@ Here’s how you can close a branch:
571565
- **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.
572566
:::
573567

568+
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.
569+
570+
### Restore Branch
571+
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.
572+
573+
574+
<div style={{
575+
position: 'relative',
576+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
577+
height: 0,
578+
width: '100%'}}>
579+
<iframe
580+
src="https://demo.arcade.software/RQ8lrFH85EZr71sQ7VKN?embed&show_copy_link=true"
581+
title=""
582+
style={{
583+
position: 'absolute',
584+
top: 0,
585+
left: 0,
586+
width: '100%',
587+
height: '100%',
588+
colorScheme: 'light'
589+
}}
590+
frameborder="0"
591+
loading="lazy"
592+
webkitAllowFullScreen
593+
mozAllowFullScreen
594+
allowFullScreen
595+
allow="clipboard-write">
596+
</iframe>
597+
</div>
598+
<p></p>
599+
600+
601+
574602
## FAQs
575603
<details>
576604
<summary>

0 commit comments

Comments
 (0)