Skip to content

Commit cbe2753

Browse files
committed
feat: update git doc to cover new branch toggle button and open all changed files section
1 parent 968745e commit cbe2753

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/05-Workspace/06-git.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ You can also discard all changes made to all files at once by clicking the three
9696

9797

9898

99+
## Open All Changed Files
100+
101+
To open every changed file at once, click the three dots at the top-right of the Git panel and select `Open All Changed Files`.
102+
103+
Every modified and untracked file opens in the editor. Deleted files are skipped, since they no longer exist on disk. Untracked files are also skipped if you turned on `Hide untracked files in panel`.
104+
105+
Files that are already open stay as they are. If the file you are viewing is one of the changed files, Phoenix Code keeps you on it. Otherwise it takes you to the first changed file.
106+
99107
## Navigate Git Changes
100108

101109
When viewing a file with multiple Git changes, you can use the Next Change and Previous Change buttons to quickly move between modifications.
@@ -258,6 +266,12 @@ This lets you inspect changes directly within the editor.
258266

259267
## Branch
260268

269+
The Git branch is shown in two places: in the sidebar, and on the Git panel toolbar. Clicking either one opens the same branch dropdown, next to the button you clicked.
270+
271+
<!-- TODO: PLUTO - add image here showing the branch button in the git panel toolbar -->
272+
273+
> The branch button is hidden when the Git panel is too narrow to fit it. The sidebar always shows the branch name.
274+
261275
### Creating a new branch
262276

263277
To create a new branch in Git, click on the `main > Create new branch...` button in the sidebar. The name shown (e.g., main) represents your current branch, so if you're on a different branch, it may display another name.
@@ -355,6 +369,7 @@ Here are the available options in Git panel:
355369
* **Show Git Panel**: Toggles the visibility of the Git panel in the interface.
356370
* **Refresh Git**: Updates the Git panel to reflect the latest changes in the repository.
357371
[Read more](#refresh-panel) about refresh git.
372+
* **Open All Changed Files**: Opens every modified and untracked file in the editor. [Read more](#open-all-changed-files) about opening all changed files.
358373

359374
### Navigation options
360375
* **Go to Next Git Change**: Moves the cursor to the next Git-tracked change in the file.

0 commit comments

Comments
 (0)